diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2016-03-06 11:45:35 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2016-03-06 12:31:40 +0100 |
commit | 5f5e6033cd984eebc1facc777250d635b2da7196 (patch) | |
tree | e816ded59a64fe562d527d2168be9feb8223bf0b /libavcodec/bitstream.c | |
parent | 40aeff5f028754ae6d80d6d5506e17581672a116 (diff) | |
download | ffmpeg-5f5e6033cd984eebc1facc777250d635b2da7196.tar.gz |
bitstream.c: improve init_vlc error messages.
Makes it far easier to spot the issue if e.g.
caused by a typo in the code table.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/bitstream.c')
-rw-r--r-- | libavcodec/bitstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c index 1acb7a337d..9344175977 100644 --- a/libavcodec/bitstream.c +++ b/libavcodec/bitstream.c @@ -317,7 +317,7 @@ int ff_init_vlc_sparse(VLC *vlc_arg, int nb_bits, int nb_codes, } \ GET_DATA(buf[j].code, codes, i, codes_wrap, codes_size); \ if (buf[j].code >= (1LL<<buf[j].bits)) { \ - av_log(NULL, AV_LOG_ERROR, "Invalid code in init_vlc\n"); \ + av_log(NULL, AV_LOG_ERROR, "Invalid code %x for %d in init_vlc\n", buf[j].code, i);\ if (!(flags & INIT_VLC_USE_NEW_STATIC)) \ av_free(buf); \ return -1; \ |