lavfi/subtitles: 10l close codec before format.

Fix invalid memory accesses.
pull/8/head
Clément Bœsch 12 years ago
parent 03847eb825
commit ab5497df15
  1. 4
      libavfilter/vf_ass.c

@ -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…
Cancel
Save