diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2008-06-25 12:08:39 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2008-06-25 12:08:39 +0000 |
commit | c624c2195f563f4086df4cc3ec131fea9b287fe1 (patch) | |
tree | 1c3a71603315d62c4c005578bb92462d7263b1b3 /libavcodec/mlp_parser.c | |
parent | a4696aa2fe88c21927835e59d543eb2efbfabaef (diff) | |
download | ffmpeg-c624c2195f563f4086df4cc3ec131fea9b287fe1.tar.gz |
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
Diffstat (limited to 'libavcodec/mlp_parser.c')
-rw-r--r-- | libavcodec/mlp_parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c index a2cd6469e6..0f1d69d02f 100644 --- a/libavcodec/mlp_parser.c +++ b/libavcodec/mlp_parser.c @@ -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++]; } |