]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/buffersrc.c
avformat/hlsenc: Use av_freep() to avoid leaving stale pointers in memory
[ffmpeg] / libavfilter / buffersrc.c
index 27d3db085b70c594eb694a85c38cab057cd34308..1cef1d6a10014506838c495bc35342f30b7293f1 100644 (file)
@@ -98,7 +98,7 @@ int attribute_align_arg av_buffersrc_add_frame_flags(AVFilterContext *ctx, AVFra
 
     if (frame && frame->channel_layout &&
         av_get_channel_layout_nb_channels(frame->channel_layout) != av_frame_get_channels(frame)) {
-        av_log(0, AV_LOG_ERROR, "Layout indicates a different number of channels than actually present\n");
+        av_log(ctx, AV_LOG_ERROR, "Layout indicates a different number of channels than actually present\n");
         return AVERROR(EINVAL);
     }