Commit 44453c09 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: Use av_fifo_freep() to avoid stale pointers

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 7f7c494a
......@@ -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]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment