Commit ecc5bada authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/movtextdec: Add error message for tsmb_size check

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 0eb31980)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent b0a5794e
...@@ -487,6 +487,7 @@ static int mov_text_decode_frame(AVCodecContext *avctx, ...@@ -487,6 +487,7 @@ static int mov_text_decode_frame(AVCodecContext *avctx,
//size_var is equal to 8 or 16 depending on the size of box //size_var is equal to 8 or 16 depending on the size of box
if (tsmb_size == 0) { if (tsmb_size == 0) {
av_log(avctx, AV_LOG_ERROR, "tsmb_size is 0\n");
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment