[FFmpeg-cvslog] avcodec/bitstream: print vlc length in error case.

Michael Niedermayer git at videolan.org
Tue May 21 13:52:36 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue May 21 13:24:40 2013 +0200| [1d7e6a6bde73a83dc8175c20598dbb4b9f53e637] | committer: Michael Niedermayer

avcodec/bitstream: print vlc length in error case.

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

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

 libavcodec/bitstream.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c
index 7e297b9..308620d 100644
--- a/libavcodec/bitstream.c
+++ b/libavcodec/bitstream.c
@@ -306,7 +306,7 @@ int ff_init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes,
         if (!(condition))\
             continue;\
         if (buf[j].bits > 3*nb_bits || buf[j].bits>32) {\
-            av_log(NULL, AV_LOG_ERROR, "Too long VLC in init_vlc\n");\
+            av_log(NULL, AV_LOG_ERROR, "Too long VLC (%d) in init_vlc\n", buf[j].bits);\
             av_free(buf);\
             return -1;\
         }\



More information about the ffmpeg-cvslog mailing list