avfilter/lavfutils: use av_frame_free for freeing an AVFrame
authorClément Bœsch <u@pkh.me>
Sat, 28 Feb 2015 09:37:23 +0000 (10:37 +0100)
committerClément Bœsch <u@pkh.me>
Mon, 2 Mar 2015 20:27:21 +0000 (21:27 +0100)
libavfilter/lavfutils.c

index 80310d2..75e68a7 100644 (file)
@@ -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);