aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-08 18:03:56 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-11 16:28:53 +0100
commit41b077762cda61a6975dabee9f58444815794619 (patch)
treea4e09c16b1fbda35356cd8e66201a03a0f6c2f26 /libavcodec
parentbbc866c9c9e3674cb49eceba7ed41f92d8ff7f61 (diff)
downloadffmpeg-41b077762cda61a6975dabee9f58444815794619.tar.gz
avcodec/movtextdec: Fix wrong error code
Reviewed-by: Philip Langdale <philipl@overt.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/movtextdec.c2
1 files changed, 1 insertions, 1 deletions
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 */