summaryrefslogtreecommitdiff
path: root/libavcodec/wmadec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-12 01:48:32 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-12 03:33:02 +0100
commita8bc901033e85963f909660629e14190cc538ffe (patch)
tree6e75818a01d4819228ae1c13d16114fb93f92663 /libavcodec/wmadec.c
parent843d93d286eef81e250addc139b1337a3b092050 (diff)
downloadffmpeg-a8bc901033e85963f909660629e14190cc538ffe.tar.gz
avcodec/wmadec: also print the number of bits left in the nb_frames <= 0 case
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r--libavcodec/wmadec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index d32ca6ff76..b7fa07010e 100644
--- a/libavcodec/wmadec.c
+++ b/libavcodec/wmadec.c
@@ -840,7 +840,8 @@ static int wma_decode_superframe(AVCodecContext *avctx, void *data,
skip_bits(&s->gb, 4); /* super frame index */
nb_frames = get_bits(&s->gb, 4) - (s->last_superframe_len <= 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;
}
} else