You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/wmadec: also print the number of bits left in the nb_frames <= 0 case
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -840,7 +840,8 @@ static int wma_decode_superframe(AVCodecContext *avctx, void *data,
|
|||||||
skip_bits(&s->gb, 4); /* super frame index */
|
skip_bits(&s->gb, 4); /* super frame index */
|
||||||
nb_frames = get_bits(&s->gb, 4) - (s->last_superframe_len <= 0);
|
nb_frames = get_bits(&s->gb, 4) - (s->last_superframe_len <= 0);
|
||||||
if (nb_frames <= 0) {
|
if (nb_frames <= 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "nb_frames is %d\n", nb_frames);
|
av_log(avctx, AV_LOG_ERROR, "nb_frames is %d bits left %d\n",
|
||||||
|
nb_frames, get_bits_left(&s->gb));
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
Reference in New Issue
Block a user