[FFmpeg-cvslog] avcodec/movtextdec: Fix wrong error code

Andreas Rheinhardt git at videolan.org
Sat Dec 11 18:05:25 EET 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Dec  8 18:03:56 2021 +0100| [41b077762cda61a6975dabee9f58444815794619] | committer: Andreas Rheinhardt

avcodec/movtextdec: Fix wrong error code

Reviewed-by: Philip Langdale <philipl at overt.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=41b077762cda61a6975dabee9f58444815794619
---

 libavcodec/movtextdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 */



More information about the ffmpeg-cvslog mailing list