Commit 4fbef590 authored by ramiro's avatar ramiro

Make it a little easier to spot that the code is not dealing only with

substream headers.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13961 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 428f3b3b
...@@ -243,11 +243,11 @@ static int mlp_parse(AVCodecParserContext *s, ...@@ -243,11 +243,11 @@ static int mlp_parse(AVCodecParserContext *s,
// Only check when this isn't a sync frame - syncs have a checksum. // Only check when this isn't a sync frame - syncs have a checksum.
parity_bits = 0; parity_bits = 0;
for (i = 0; i <= mp->num_substreams; i++) { for (i = -1; i < mp->num_substreams; i++) {
parity_bits ^= buf[p++]; parity_bits ^= buf[p++];
parity_bits ^= buf[p++]; parity_bits ^= buf[p++];
if (i == 0 || buf[p-2] & 0x80) { if (i < 0 || buf[p-2] & 0x80) {
parity_bits ^= buf[p++]; parity_bits ^= buf[p++];
parity_bits ^= buf[p++]; parity_bits ^= buf[p++];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment