]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/swfdec.c
lavc: Enable a53cc by default for x264 and qsv_h264.
[ffmpeg] / libavformat / swfdec.c
index 20f1568e6f33ab9248e1581780f569273cdc9897..3268c0aa372c31cd8d5e80d637378506e96a69df 100644 (file)
@@ -397,6 +397,7 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
 
             if (linesize * height > pkt->size) {
                 res = AVERROR_INVALIDDATA;
+                av_packet_unref(pkt);
                 goto bitmap_end;
             }