From 00ffbdfb68ca3ff89d1735017a5f0db418b7a85b Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 1 May 2016 15:30:22 +0200 Subject: [PATCH] lavc/fic: Do not warn about empty cursor. Fixes ticket #5174. --- libavcodec/fic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {