[MPlayer-cvslog] r37829 - trunk/libmpcodecs/vd_ffmpeg.c
rtogni
subversion at mplayerhq.hu
Thu Mar 3 21:44:29 CET 2016
Author: rtogni
Date: Thu Mar 3 21:44:29 2016
New Revision: 37829
Log:
Use avcodec_free_context to free lavc context.
Modified:
trunk/libmpcodecs/vd_ffmpeg.c
Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c Wed Mar 2 23:08:46 2016 (r37828)
+++ trunk/libmpcodecs/vd_ffmpeg.c Thu Mar 3 21:44:29 2016 (r37829)
@@ -531,7 +531,7 @@ static void uninit(sh_video_t *sh){
av_freep(&avctx->slice_offset);
}
- av_freep(&avctx);
+ avcodec_free_context(&avctx);
av_frame_free(&ctx->pic);
free(ctx);
}
More information about the MPlayer-cvslog
mailing list