Commit 00ffbdfb authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavc/fic: Do not warn about empty cursor.

Fixes ticket #5174.
parent 47a11ff4
...@@ -309,7 +309,7 @@ static int fic_decode_frame(AVCodecContext *avctx, void *data, ...@@ -309,7 +309,7 @@ static int fic_decode_frame(AVCodecContext *avctx, void *data,
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
if (!tsize) if (!tsize || !AV_RL16(src + 37) || !AV_RL16(src + 39))
skip_cursor = 1; skip_cursor = 1;
if (!skip_cursor && tsize < 32) { if (!skip_cursor && tsize < 32) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment