OSDN Git Service

lavc/fic: Do not warn about empty cursor.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 1 May 2016 13:30:22 +0000 (15:30 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 1 May 2016 13:30:22 +0000 (15:30 +0200)
Fixes ticket #5174.

libavcodec/fic.c

index 6a2b5d6..d3952a4 100644 (file)
@@ -309,7 +309,7 @@ static int fic_decode_frame(AVCodecContext *avctx, void *data,
         return AVERROR_INVALIDDATA;
     }
 
-    if (!tsize)
+    if (!tsize || !AV_RL16(src + 37) || !AV_RL16(src + 39))
         skip_cursor = 1;
 
     if (!skip_cursor && tsize < 32) {