]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/lavfutils.c
avfilter/avf_showcqt: Replace all fmin* and fmax* by FFMIN/FFMAX
[ffmpeg] / libavfilter / lavfutils.c
index 9952e6eab6f969d3d03dce3525e587a252cbfac5..706badf63d363d5e473c279bb8617eca11fffcd6 100644 (file)
@@ -95,7 +95,7 @@ int ff_load_image(uint8_t *data[4], int linesize[4],
     av_image_copy(data, linesize, (const uint8_t **)frame->data, frame->linesize, *pix_fmt, *w, *h);
 
 end:
-    av_free_packet(&pkt);
+    av_packet_unref(&pkt);
     avcodec_close(codec_ctx);
     avformat_close_input(&format_ctx);
     av_frame_free(&frame);