[FFmpeg-cvslog] avfilter/lavfutils: use av_frame_free for freeing an AVFrame

Clément Bœsch git at videolan.org
Mon Mar 2 21:27:26 CET 2015


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Feb 28 10:37:23 2015 +0100| [17cb05fe063482b0113682af1466f8cb64cf8388] | committer: Clément Bœsch

avfilter/lavfutils: use av_frame_free for freeing an AVFrame

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=17cb05fe063482b0113682af1466f8cb64cf8388
---

 libavfilter/lavfutils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c
index 80310d2..75e68a7 100644
--- a/libavfilter/lavfutils.c
+++ b/libavfilter/lavfutils.c
@@ -96,7 +96,7 @@ end:
     av_free_packet(&pkt);
     avcodec_close(codec_ctx);
     avformat_close_input(&format_ctx);
-    av_freep(&frame);
+    av_frame_free(&frame);
 
     if (ret < 0)
         av_log(log_ctx, AV_LOG_ERROR, "Error loading image file '%s'\n", filename);



More information about the ffmpeg-cvslog mailing list