Commit 8d1c7ca2 authored by oblique's avatar oblique Committed by Max Kellermann

ffmpeg: workaround for semantic API change in recent ffmpeg versions

parent 52b8e0f9
ver 0.16.4 (2010/??/??)
* decoder:
- ffmpeg: workaround for semantic API change in recent ffmpeg versions
ver 0.16.3 (2011/06/04)
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment