From 41b077762cda61a6975dabee9f58444815794619 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 8 Dec 2021 18:03:56 +0100 Subject: avcodec/movtextdec: Fix wrong error code Reviewed-by: Philip Langdale Signed-off-by: Andreas Rheinhardt --- libavcodec/movtextdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/movtextdec.c') diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c index 63709eb54b..825632ca9b 100644 --- a/libavcodec/movtextdec.c +++ b/libavcodec/movtextdec.c @@ -294,7 +294,7 @@ static int decode_styl(const uint8_t *tsmb, MovTextContext *m, uint64_t size) if (style->end < style->start || (i && style->start < m->s[i - 1].end)) { mov_text_cleanup(m); - return AVERROR(ENOMEM); + return AVERROR_INVALIDDATA; } if (style->start == style->end) { /* Skip this style as it applies to no character */ -- cgit v1.2.1