[FFmpeg-cvslog] h264: log debug output for slightly truncated streams

Michael Niedermayer git at videolan.org
Sat Jun 2 16:33:52 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun  2 15:37:20 2012 +0200| [fb4e434cfb5bf5510bf9ade40a9b63e3a579247e] | committer: Michael Niedermayer

h264: log debug output for slightly truncated streams

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fb4e434cfb5bf5510bf9ade40a9b63e3a579247e
---

 libavcodec/h264.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 702d406..af79468 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",



More information about the ffmpeg-cvslog mailing list