]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/wmaprodec.c
Merge commit '2862b63783b5556f7f3fb2d097629bc6879f833a'
[ffmpeg] / libavcodec / wmaprodec.c
index c150eaf38103a5e308ab08ec8a73fbe6370f13a3..2ea59e9251e4a254bd2c5d0cf07ae498907d7fd4 100644 (file)
@@ -1222,7 +1222,7 @@ static int decode_subframe(WMAProDecodeCtx *s)
         int num_fill_bits;
         if (!(num_fill_bits = get_bits(&s->gb, 2))) {
             int len = get_bits(&s->gb, 4);
-            num_fill_bits = (len ? get_bits(&s->gb, len) : 0) + 1;
+            num_fill_bits = get_bitsz(&s->gb, len) + 1;
         }
 
         if (num_fill_bits >= 0) {