git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e34751c
)
avcodec/clearvideo: display warning if decoder overreads input
author
Paul B Mahol
<onemda@gmail.com>
Tue, 24 Apr 2018 15:20:26 +0000
(17:20 +0200)
committer
Paul B Mahol
<onemda@gmail.com>
Tue, 24 Apr 2018 15:20:26 +0000
(17:20 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/clearvideo.c
patch
|
blob
|
history
diff --git
a/libavcodec/clearvideo.c
b/libavcodec/clearvideo.c
index
b4bfa3b
..
0e3c772
100644
(file)
--- a/
libavcodec/clearvideo.c
+++ b/
libavcodec/clearvideo.c
@@
-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;
}