Browse Source

lavfi/subtitles: 10l close codec before format.

Fix invalid memory accesses.
tags/n1.1
Clément Bœsch 13 years ago
parent
commit
ab5497df15
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavfilter/vf_ass.c

+ 2
- 2
libavfilter/vf_ass.c 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;
}



Loading…
Cancel
Save