Author: ramiro
Date: Tue Jun 24 15:29:05 2008
New Revision: 2566

Log:
Correct remaining buffer size for init_get_bits().

Modified:
   mlp/mlpdec.c

Modified: mlp/mlpdec.c
==============================================================================
--- mlp/mlpdec.c        (original)
+++ mlp/mlpdec.c        Tue Jun 24 15:29:05 2008
@@ -984,7 +984,7 @@ static int read_access_unit(AVCodecConte
     buf      += 4;
     buf_size -= 4;
 
-    init_get_bits(&gb, buf, length * 8);
+    init_get_bits(&gb, buf, (length - 4) * 8);
 
     if (show_bits_long(&gb, 31) == (0xf8726fba >> 1)) {
         dprintf(m->avctx, "Found major sync\n");
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to