mirror of https://git.ffmpeg.org/ffmpeg.git
lavfi/subtitles: 10l close codec before format.
Fix invalid memory accesses.
This commit is contained in:
parent
03847eb825
commit
ab5497df15
|
@ -332,10 +332,10 @@ static av_cold int init_subtitles(AVFilterContext *ctx, const char *args)
|
|||
}
|
||||
|
||||
end:
|
||||
if (fmt)
|
||||
avformat_close_input(&fmt);
|
||||
if (dec_ctx)
|
||||
avcodec_close(dec_ctx);
|
||||
if (fmt)
|
||||
avformat_close_input(&fmt);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue