[FFmpeg-cvslog] avcodec/movtextdec: Add error message for tsmb_size check
Michael Niedermayer
git at videolan.org
Sun Dec 4 22:13:00 EET 2016
ffmpeg | branch: release/3.0 | Michael Niedermayer <michael at niedermayer.cc> | Tue Nov 15 14:54:47 2016 +0100| [27fbf8f110f618725b1efe50b2d56f3de27f96d9] | 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=27fbf8f110f618725b1efe50b2d56f3de27f96d9
---
libavcodec/movtextdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c
index 3faebb3..775c63e 100644
--- a/libavcodec/movtextdec.c
+++ b/libavcodec/movtextdec.c
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list