diff options
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/movtextdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c index 43ebb78..b34523d 100644 --- a/libavcodec/movtextdec.c +++ b/libavcodec/movtextdec.c @@ -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 |