projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de4a4ca
)
avcodec/pngdec: print the actual number of bytes left in the error case
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 11 Sep 2014 14:15:02 +0000
(16:15 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 11 Sep 2014 14:47:01 +0000
(16:47 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/pngdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/pngdec.c
b/libavcodec/pngdec.c
index
92dc25a
..
da91aab
100644
(file)
--- a/
libavcodec/pngdec.c
+++ b/
libavcodec/pngdec.c
@@
-559,7
+559,7
@@
static int decode_frame(AVCodecContext *avctx,
}
for (;;) {
if (bytestream2_get_bytes_left(&s->gb) <= 0) {
- av_log(avctx, AV_LOG_ERROR, "
No bytes left\n"
);
+ av_log(avctx, AV_LOG_ERROR, "
%d bytes left\n", bytestream2_get_bytes_left(&s->gb)
);
if ( s->state & PNG_ALLIMAGE
&& avctx->strict_std_compliance <= FF_COMPLIANCE_NORMAL)
goto exit_loop;