aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-05-01 15:30:22 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-05-01 15:30:22 +0200
commit00ffbdfb68ca3ff89d1735017a5f0db418b7a85b (patch)
tree59fa7c7bacb119acf26719acd00ff251d625482d /libavcodec
parent47a11ff4574ba0d40736a05dd80f038e473ce36e (diff)
downloadffmpeg-00ffbdfb68ca3ff89d1735017a5f0db418b7a85b.tar.gz
lavc/fic: Do not warn about empty cursor.
Fixes ticket #5174.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/fic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/fic.c b/libavcodec/fic.c
index 6a2b5d6380..d3952a4c01 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) {