[FFmpeg-cvslog] ffmpeg: Use av_fifo_freep() to avoid stale pointers

Michael Niedermayer git at videolan.org
Fri Oct 14 18:26:40 EEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Oct 14 17:05:25 2016 +0200| [44453c09e46eb30a1316cac30027c7f6d53a6e6f] | committer: Michael Niedermayer

ffmpeg: Use av_fifo_freep() to avoid stale pointers

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=44453c09e46eb30a1316cac30027c7f6d53a6e6f
---

 ffmpeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index af8ed76..39fac3f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -538,7 +538,7 @@ static void ffmpeg_cleanup(int ret)
             av_fifo_generic_read(ost->muxing_queue, &pkt, sizeof(pkt), NULL);
             av_packet_unref(&pkt);
         }
-        av_fifo_free(ost->muxing_queue);
+        av_fifo_freep(&ost->muxing_queue);
 
         av_freep(&output_streams[i]);
     }



More information about the ffmpeg-cvslog mailing list