You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/clearvideo: display warning if decoder overreads input
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user