From: Carl Eugen Hoyos Date: Sun, 1 May 2016 13:30:22 +0000 (+0200) Subject: lavc/fic: Do not warn about empty cursor. X-Git-Tag: android-x86-7.1-r1~5423 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=00ffbdfb68ca3ff89d1735017a5f0db418b7a85b;p=android-x86%2Fexternal-ffmpeg.git lavc/fic: Do not warn about empty cursor. Fixes ticket #5174. --- 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) {