Merge tag 'v0.19.21'
release v0.19.21
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user