avcodec/utils: fix minor memory leaks on avcodec_open2() failure

This commit is contained in:
wm4 2016-04-22 19:29:48 +02:00
parent 53a9b164c5
commit 27adf9f9cd
1 changed files with 2 additions and 0 deletions

View File

@ -1670,6 +1670,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
av_dict_free(&tmp);
av_freep(&avctx->priv_data);
if (avctx->internal) {
av_packet_free(&avctx->internal->buffer_pkt);
av_frame_free(&avctx->internal->buffer_frame);
av_frame_free(&avctx->internal->to_free);
av_freep(&avctx->internal->pool);
}