aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-02 15:37:20 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-02 15:37:20 +0200
commitfb4e434cfb5bf5510bf9ade40a9b63e3a579247e (patch)
tree91c4a2e10cd5a999de941bd216ce6d7c0837b9aa
parentcd0f9f00a2471891b692729d8e62c8979396a2ee (diff)
downloadffmpeg-fb4e434cfb5bf5510bf9ade40a9b63e3a579247e.tar.gz
h264: log debug output for slightly truncated streams
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/h264.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 702d4062c2..af7946888c 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4032,6 +4032,8 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg)
loop_filter(h, lf_x_start, s->mb_x + 1);
return 0;
}
+ if (h->cabac.bytestream > h->cabac.bytestream_end + 2 )
+ av_log(h->s.avctx, AV_LOG_DEBUG, "bytestream overread %td\n", h->cabac.bytestream_end - h->cabac.bytestream);
if (ret < 0 || h->cabac.bytestream > h->cabac.bytestream_end + 4) {
av_log(h->s.avctx, AV_LOG_ERROR,
"error while decoding MB %d %d, bytestream (%td)\n",