movtextdec: fix return value for too small packets.

This commit is contained in:
Nicolas George 2012-07-29 14:56:59 +02:00
parent 3d5dc7d87d
commit 9009fa6de4
1 changed files with 1 additions and 1 deletions

View File

@ -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