[FFmpeg-soc] [soc]: r3262 - mlp/mlpenc.c

ramiro subversion at mplayerhq.hu
Thu Aug 14 06:06:49 CEST 2008


Author: ramiro
Date: Thu Aug 14 06:06:49 2008
New Revision: 3262

Log:
Use xor_32_to_8 to calculate lossless_check_data.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Thu Aug 14 06:06:49 2008
@@ -174,16 +174,12 @@ static void write_restart_header(MLPEnco
                                  PutBitContext *pb, int substr)
 {
     RestartHeader *rh = &ctx->restart_header[substr];
-    int32_t lossless_check = rh->lossless_check_data;
+    int32_t lossless_check = xor_32_to_8(rh->lossless_check_data);
     unsigned int start_count = put_bits_count(pb);
     PutBitContext tmpb;
     uint8_t checksum;
     unsigned int ch;
 
-    lossless_check ^= lossless_check >> 16;
-    lossless_check ^= lossless_check >>  8;
-    lossless_check &= 0xFF;
-
     put_bits(pb, 14, 0x31ea                ); /* TODO 0x31eb */
     put_bits(pb, 16, 0                     ); /* TODO I don't know what this is. Ask Ian. */
     put_bits(pb,  4, rh->min_channel       );



More information about the FFmpeg-soc mailing list