]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rasc.c
avformat: remove avio_flush() calls from the end of write_packet functions
[ffmpeg] / libavcodec / rasc.c
index 21fc43f325c761a8f0fec0cd5b87d9baaa75f9e4..cdf20a6db9a55d7804687f28af4084a152f13e1b 100644 (file)
@@ -124,6 +124,8 @@ static int decode_fint(AVCodecContext *avctx,
         clear_plane(avctx, s->frame1);
         return 0;
     }
+    if (bytestream2_get_bytes_left(gb) < 72)
+        return AVERROR_INVALIDDATA;
 
     bytestream2_skip(gb, 8);
     w = bytestream2_get_le32(gb);