mirror of https://git.ffmpeg.org/ffmpeg.git
movtextdec: fix return value for too small packets.
This commit is contained in:
parent
3d5dc7d87d
commit
9009fa6de4
|
@ -66,7 +66,7 @@ static int mov_text_decode_frame(AVCodecContext *avctx,
|
||||||
const char *end;
|
const char *end;
|
||||||
|
|
||||||
if (!ptr || avpkt->size <= 2)
|
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
|
* The first two bytes of the packet are the length of the text string
|
||||||
|
|
Loading…
Reference in New Issue