[FFmpeg-soc] [soc]: r4209 - mlp/mlpenc.c
ramiro
subversion at mplayerhq.hu
Mon Apr 20 04:31:25 CEST 2009
Author: ramiro
Date: Mon Apr 20 04:31:25 2009
New Revision: 4209
Log:
XOR lossless_check_data outside loop and if.
Modified:
mlp/mlpenc.c
Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c Mon Apr 20 04:30:56 2009 (r4208)
+++ mlp/mlpenc.c Mon Apr 20 04:31:25 2009 (r4209)
@@ -1087,9 +1087,6 @@ static uint8_t *write_substrs(MLPEncodeC
put_bits(&pb, 1, 0);
}
- if (!restart_frame)
- rh->lossless_check_data ^= *lossless_check_data++;
-
write_block_data(ctx, &pb);
put_bits(&pb, 1, !restart_frame);
@@ -1100,6 +1097,8 @@ static uint8_t *write_substrs(MLPEncodeC
put_bits(&pb, (-put_bits_count(&pb)) & 15, 0);
+ rh->lossless_check_data ^= *lossless_check_data++;
+
if (ctx->last_frame == ctx->inout_buffer) {
/* TODO find a sample and implement shorten_by. */
put_bits(&pb, 32, END_OF_STREAM);
More information about the FFmpeg-soc
mailing list