mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
Make it a little easier to spot that the code is not dealing only with
substream headers. Originally committed as revision 13961 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a4696aa2fe
commit
c624c2195f
@ -243,11 +243,11 @@ static int mlp_parse(AVCodecParserContext *s,
|
||||
// Only check when this isn't a sync frame - syncs have a checksum.
|
||||
|
||||
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++];
|
||||
|
||||
if (i == 0 || buf[p-2] & 0x80) {
|
||||
if (i < 0 || buf[p-2] & 0x80) {
|
||||
parity_bits ^= buf[p++];
|
||||
parity_bits ^= buf[p++];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user