[FFmpeg-cvslog] lavc/fic: Do not warn about empty cursor.

Carl Eugen Hoyos git at videolan.org
Sun May 1 15:31:01 CEST 2016


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun May  1 15:30:22 2016 +0200| [00ffbdfb68ca3ff89d1735017a5f0db418b7a85b] | committer: Carl Eugen Hoyos

lavc/fic: Do not warn about empty cursor.

Fixes ticket #5174.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=00ffbdfb68ca3ff89d1735017a5f0db418b7a85b
---

 libavcodec/fic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/fic.c b/libavcodec/fic.c
index 6a2b5d6..d3952a4 100644
--- a/libavcodec/fic.c
+++ b/libavcodec/fic.c
@@ -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) {



More information about the ffmpeg-cvslog mailing list