Browse code

avfilter/lavfutils: use av_frame_free for freeing an AVFrame

Clément Bœsch authored on 2015/02/28 18:37:23
Showing 1 changed files
... ...
@@ -96,7 +96,7 @@ end:
96 96
     av_free_packet(&pkt);
97 97
     avcodec_close(codec_ctx);
98 98
     avformat_close_input(&format_ctx);
99
-    av_freep(&frame);
99
+    av_frame_free(&frame);
100 100
 
101 101
     if (ret < 0)
102 102
         av_log(log_ctx, AV_LOG_ERROR, "Error loading image file '%s'\n", filename);