mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
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;
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user