Merge tag 'v0.19.21'

release v0.19.21
This commit is contained in:
Max Kellermann
2016-12-13 10:59:23 +01:00
10 changed files with 94 additions and 24 deletions

View File

@@ -68,10 +68,8 @@ FfmpegOpenInput(AVIOContext *pb,
context->pb = pb;
int err = avformat_open_input(&context, filename, fmt, nullptr);
if (err < 0) {
avformat_free_context(context);
if (err < 0)
throw MakeFfmpegError(err, "avformat_open_input() failed");
}
return context;
}