[FFmpeg-soc] [soc]: r2566 - mlp/mlpdec.c
ramiro
subversion at mplayerhq.hu
Tue Jun 24 15:29:05 CEST 2008
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");
More information about the FFmpeg-soc
mailing list