aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mlp_parser.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2008-07-02 12:24:50 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2008-07-02 12:24:50 +0000
commit5faf3a4449ff9feaea18e14389b6747aef82a4a7 (patch)
tree5dc48ad25f12cb691a06c4d013e9155690166290 /libavcodec/mlp_parser.c
parentfba7815d8d8b122c7e3cdef83df642b83cfce292 (diff)
downloadffmpeg-5faf3a4449ff9feaea18e14389b6747aef82a4a7.tar.gz
Clarify comment about parity nibble.
Originally committed as revision 14047 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mlp_parser.c')
-rw-r--r--libavcodec/mlp_parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c
index daa3c4e2aa..8b0dd5f6c6 100644
--- a/libavcodec/mlp_parser.c
+++ b/libavcodec/mlp_parser.c
@@ -238,7 +238,8 @@ static int mlp_parse(AVCodecParserContext *s,
sync_present = (AV_RB32(buf + 4) & 0xfffffffe) == 0xf8726fba;
if (!sync_present) {
- // First nibble of a frame is a parity check of the first few nibbles.
+ /* The first nibble of a frame is a parity check of the 4-byte
+ * access unit header and all the 2- or 4-byte substream headers. */
// Only check when this isn't a sync frame - syncs have a checksum.
parity_bits = 0;