diff options
author | oblique <psyberbits@gmail.com> | 2011-07-03 14:54:56 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-07-03 14:54:56 +0200 |
commit | 8d1c7ca2065444dfe2da432a30c95782e3ead48d (patch) | |
tree | ed07c4841b663c0ec859df4d67671939d3ee7ec2 /src/decoder/ffmpeg_decoder_plugin.c | |
parent | 52b8e0f9ecdc15c90266d6a50a5ebd9a1038ebdb (diff) | |
download | mpd-8d1c7ca2065444dfe2da432a30c95782e3ead48d.tar.gz mpd-8d1c7ca2065444dfe2da432a30c95782e3ead48d.tar.xz mpd-8d1c7ca2065444dfe2da432a30c95782e3ead48d.zip |
ffmpeg: workaround for semantic API change in recent ffmpeg versions
Diffstat (limited to '')
-rw-r--r-- | src/decoder/ffmpeg_decoder_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/ffmpeg_decoder_plugin.c b/src/decoder/ffmpeg_decoder_plugin.c index 6d794db49..156853faf 100644 --- a/src/decoder/ffmpeg_decoder_plugin.c +++ b/src/decoder/ffmpeg_decoder_plugin.c @@ -321,7 +321,7 @@ ffmpeg_decode(struct decoder *decoder, struct input_stream *input) } //ffmpeg works with ours "fileops" helper - AVFormatContext *format_context; + AVFormatContext *format_context = NULL; if (av_open_input_stream(&format_context, stream->io, input->uri, input_format, NULL) != 0) { g_warning("Open failed\n"); @@ -470,7 +470,7 @@ ffmpeg_stream_tag(struct input_stream *is) if (stream == NULL) return NULL; - AVFormatContext *f; + AVFormatContext *f = NULL; if (av_open_input_stream(&f, stream->io, is->uri, input_format, NULL) != 0) { mpd_ffmpeg_stream_close(stream); |