Commit f09fdf2d authored by Paul B Mahol's avatar Paul B Mahol

avcodec/clearvideo: display warning if decoder overreads input

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent e34751cb
......@@ -637,6 +637,9 @@ static int clv_decode_frame(AVCodecContext *avctx, void *data,
*got_frame = 1;
if (get_bits_left(&c->gb) < 0)
av_log(c->avctx, AV_LOG_WARNING, "overread %d\n", -get_bits_left(&c->gb));
return mb_ret < 0 ? mb_ret : buf_size;
}
......
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