avcodec/movtextdec: Add error message for tsmb_size check
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 15 Nov 2016 13:54:47 +0000 (14:54 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Dec 2016 19:25:15 +0000 (20:25 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 0eb319800567b79ca6b4cf0d90904318641b9e50)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/movtextdec.c

index 3faebb3..775c63e 100644 (file)
@@ -488,6 +488,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;
             }