[FFmpeg-soc] [soc]: r2662 - mlp/mlpdec.c
ramiro
subversion at mplayerhq.hu
Thu Jul 3 01:29:16 CEST 2008
Author: ramiro
Date: Thu Jul 3 01:29:16 2008
New Revision: 2662
Log:
Prevent case where GetBitContext might be written to and read from in
unspecified order.
Modified:
mlp/mlpdec.c
Modified: mlp/mlpdec.c
==============================================================================
--- mlp/mlpdec.c (original)
+++ mlp/mlpdec.c Thu Jul 3 01:29:16 2008
@@ -786,7 +786,8 @@ static int read_block_data(MLPDecodeCont
unsigned int i, ch, expected_stream_pos = 0;
if (s->data_check_present) {
- expected_stream_pos = get_bits_count(gbp) + get_bits(gbp, 16);
+ expected_stream_pos = get_bits_count(gbp);
+ expected_stream_pos += get_bits(gbp, 16);
av_log(m->avctx, AV_LOG_WARNING, "This file contains some features "
"we have not tested yet. %s\n", sample_message);
}
More information about the FFmpeg-soc
mailing list