avcodec/bitstream: print vlc length in error case.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 21 May 2013 11:24:40 +0000 (13:24 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 21 May 2013 11:51:04 +0000 (13:51 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/bitstream.c

index 7e297b9..308620d 100644 (file)
@@ -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;\
         }\