diff options
author | Max Kellermann <max@duempel.org> | 2010-02-27 19:25:56 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-02-27 19:25:56 +0100 |
commit | 4e364854ab2d617dde418d26b50d19480431f813 (patch) | |
tree | 8551ae8d0f462b567336cef746f02fecb7f45aca /src | |
parent | a3645984cdf5a827b93b616acd4bae2d33af728a (diff) | |
download | mpd-4e364854ab2d617dde418d26b50d19480431f813.tar.gz mpd-4e364854ab2d617dde418d26b50d19480431f813.tar.xz mpd-4e364854ab2d617dde418d26b50d19480431f813.zip |
decoder/ffmpeg: don't close the AVFormatContext after open failure
The pointer is invalid if av_open_input_file() fails.
Diffstat (limited to 'src')
-rw-r--r-- | src/decoder/ffmpeg_decoder_plugin.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/decoder/ffmpeg_decoder_plugin.c b/src/decoder/ffmpeg_decoder_plugin.c index 10086b34b..37ed3bd48 100644 --- a/src/decoder/ffmpeg_decoder_plugin.c +++ b/src/decoder/ffmpeg_decoder_plugin.c @@ -256,7 +256,6 @@ ffmpeg_decode(struct decoder *decoder, struct input_stream *input) //ffmpeg works with ours "fileops" helper if (av_open_input_file(&format_context, stream.url, NULL, 0, NULL) != 0) { g_warning("Open failed\n"); - av_close_input_file(format_context); return; } |