1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avfilter/lavfutils: use av_frame_free for freeing an AVFrame

This commit is contained in:
Clément Bœsch
2015-02-28 10:37:23 +01:00
parent 546d69eb43
commit 17cb05fe06

View File

@@ -96,7 +96,7 @@ end:
av_free_packet(&pkt); av_free_packet(&pkt);
avcodec_close(codec_ctx); avcodec_close(codec_ctx);
avformat_close_input(&format_ctx); avformat_close_input(&format_ctx);
av_freep(&frame); av_frame_free(&frame);
if (ret < 0) if (ret < 0)
av_log(log_ctx, AV_LOG_ERROR, "Error loading image file '%s'\n", filename); av_log(log_ctx, AV_LOG_ERROR, "Error loading image file '%s'\n", filename);