]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpegenc.c
lavf/avio: Be more explicit in logging white/black list matches
[ffmpeg] / libavformat / mpegenc.c
index 878fa6381f15b9d0f1bc434ce0089997f7ef9843..c77c3dfe41459b52f0196bcb694e50799df19351 100644 (file)
@@ -1146,6 +1146,8 @@ static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt)
         stream->next_packet = &stream->premux_packet;
     *stream->next_packet     =
     pkt_desc                 = av_mallocz(sizeof(PacketDesc));
+    if (!pkt_desc)
+        return AVERROR(ENOMEM);
     pkt_desc->pts            = pts;
     pkt_desc->dts            = dts;
     pkt_desc->unwritten_size =