aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-11-15 14:54:47 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-11-17 12:47:40 +0100
commit8deaed3b12bf58f3d779c6afe6e73fbd46375237 (patch)
treece986a9d8ec3870fbba5cffe0a8d66d0b8d618b2
parenta0c6b4cfd169a294c8873173f3b8cde035b5b01c (diff)
downloadffmpeg-8deaed3b12bf58f3d779c6afe6e73fbd46375237.tar.gz
avcodec/movtextdec: Add error message for tsmb_size check
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 0eb319800567b79ca6b4cf0d90904318641b9e50) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/movtextdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c
index 0618f375fc..7b5b161561 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;
}