diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-01 00:35:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-01 00:35:06 +0200 |
commit | 8a0efa9cc075523b09b4a0585389df865996c214 (patch) | |
tree | d90e2954b2a5e9e3efd32e546b694d1713ef1257 /libavcodec/qdm2.c | |
parent | e47e23698b4ba4388c00379e2b2443b2cfd0aa67 (diff) | |
download | ffmpeg-8a0efa9cc075523b09b4a0585389df865996c214.tar.gz |
qdm2: fix incorrect error spam
Fixes Ticket1375
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/qdm2.c')
-rw-r--r-- | libavcodec/qdm2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c index 7a5d0726f9..aa180fdbd1 100644 --- a/libavcodec/qdm2.c +++ b/libavcodec/qdm2.c @@ -1363,7 +1363,8 @@ static void qdm2_fft_decode_tones (QDM2Context *q, int duration, GetBitContext * if (q->superblocktype_2_3) { while ((n = qdm2_get_vlc(gb, &vlc_tab_fft_tone_offset[local_int_8], 1, 2)) < 2) { if (get_bits_left(gb)<0) { - av_log(0, AV_LOG_ERROR, "overread in qdm2_fft_decode_tones()\n"); + if(local_int_4 < q->group_size) + av_log(0, AV_LOG_ERROR, "overread in qdm2_fft_decode_tones()\n"); return; } offset = 1; |