[FFmpeg-cvslog] avcodec/movtextdec: Add error message for tsmb_size check

Michael Niedermayer git at videolan.org
Mon Dec 5 19:46:47 EET 2016


ffmpeg | branch: release/3.1 | Michael Niedermayer <michael at niedermayer.cc> | Tue Nov 15 14:54:47 2016 +0100| [5f3043e51c5b8fafe377092dc0292eb4bea57f3c] | committer: Michael Niedermayer

avcodec/movtextdec: Add error message for tsmb_size check

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 0eb319800567b79ca6b4cf0d90904318641b9e50)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c
index 0618f37..7b5b161 100644
--- a/libavcodec/movtextdec.c
+++ b/libavcodec/movtextdec.c
@@ -482,6 +482,7 @@ static int mov_text_decode_frame(AVCodecContext *avctx,
             //size_var is equal to 8 or 16 depending on the size of box
 
             if (tsmb_size == 0) {
+                av_log(avctx, AV_LOG_ERROR, "tsmb_size is 0\n");
                 return AVERROR_INVALIDDATA;
             }
 



More information about the ffmpeg-cvslog mailing list