You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
movtextdec: fix return value for too small packets.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user