Commit 1e566945 authored by James Almer's avatar James Almer

Merge commit '9e4a5eb5'

* commit '9e4a5eb5':
  avformat: Free the internal codec context at the end
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents f4bda7e3 9e4a5eb5
......@@ -3875,12 +3875,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
}
// close codecs which were opened in try_decode_frame()
for (i = 0; i < ic->nb_streams; i++) {
st = ic->streams[i];
avcodec_close(st->internal->avctx);
}
ff_rfps_calculate(ic);
for (i = 0; i < ic->nb_streams; i++) {
......@@ -4071,6 +4065,7 @@ find_stream_info_err:
st = ic->streams[i];
if (st->info)
av_freep(&st->info->duration_error);
avcodec_close(ic->streams[i]->internal->avctx);
av_freep(&ic->streams[i]->info);
av_bsf_free(&ic->streams[i]->internal->extract_extradata.bsf);
av_packet_free(&ic->streams[i]->internal->extract_extradata.pkt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment