Commit 9009fa6d authored by Nicolas George's avatar Nicolas George

movtextdec: fix return value for too small packets.

parent 3d5dc7d8
......@@ -66,7 +66,7 @@ static int mov_text_decode_frame(AVCodecContext *avctx,
const char *end;
if (!ptr || avpkt->size <= 2)
return 0;
return avpkt->size ? AVERROR_INVALIDDATA : 0;
/*
* The first two bytes of the packet are the length of the text string
......
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