Commit 7146f825 authored by Max Kellermann's avatar Max Kellermann

decoder/ffmpeg: fix double free bug

From the avformat_open_input() API documentation: "Note that a user-supplied AVFormatContext will be freed on failure." https://bugs.musicpd.org/view.php?id=4607
parent f61a5f52
ver 0.19.20 (not yet released)
* decoder
- ffmpeg: fix crash bug
ver 0.19.20 (2016/12/09)
* protocol
......
......@@ -71,7 +71,6 @@ FfmpegOpenInput(AVIOContext *pb,
int err = avformat_open_input(&context, filename, fmt, nullptr);
if (err < 0) {
avformat_free_context(context);
SetFfmpegError(error, err, "avformat_open_input() failed");
return nullptr;
}
......
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