summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mpegenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c
index 93f40b2..f698023 100644
--- a/libavformat/mpegenc.c
+++ b/libavformat/mpegenc.c
@@ -1258,6 +1258,8 @@ static void mpeg_mux_deinit(AVFormatContext *ctx)
{
for (int i = 0; i < ctx->nb_streams; i++) {
StreamInfo *stream = ctx->streams[i]->priv_data;
+ if (!stream)
+ continue;
av_fifo_freep(&stream->fifo);
}
}
OpenPOWER on IntegriCloud