lavfi/subtitles: 10l close codec before format.

Fix invalid memory accesses.
This commit is contained in:
Clément Bœsch 2012-12-04 23:56:00 +01:00
parent 03847eb825
commit ab5497df15
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}