[FFmpeg-cvslog] avcodec/wmadec: also print the number of bits left in the nb_frames <= 0 case

Michael Niedermayer git at videolan.org
Mon Jan 12 03:34:07 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jan 12 01:48:32 2015 +0100| [a8bc901033e85963f909660629e14190cc538ffe] | committer: Michael Niedermayer

avcodec/wmadec: also print the number of bits left in the nb_frames <= 0 case

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a8bc901033e85963f909660629e14190cc538ffe
---

 libavcodec/wmadec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index d32ca6f..b7fa070 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



More information about the ffmpeg-cvslog mailing list