aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-10-14 17:05:25 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-10-14 17:05:25 +0200
commit44453c09e46eb30a1316cac30027c7f6d53a6e6f (patch)
tree7c61a93e2fea06ecb8de6f72b27b58ec6365fba0
parent7f7c494a3340f71046dde62aa1939128600854a4 (diff)
downloadffmpeg-44453c09e46eb30a1316cac30027c7f6d53a6e6f.tar.gz
ffmpeg: Use av_fifo_freep() to avoid stale pointers
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index af8ed76a60..39fac3fc60 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]);
}