[FFmpeg-soc] [soc]: r2040 - dcaenc/dcaenc.c

kostya subversion at mplayerhq.hu
Wed Mar 26 06:51:00 CET 2008


Author: kostya
Date: Wed Mar 26 06:50:59 2008
New Revision: 2040

Log:
prevent appearing of false syncwords

Modified:
   dcaenc/dcaenc.c

Modified: dcaenc/dcaenc.c
==============================================================================
--- dcaenc/dcaenc.c	(original)
+++ dcaenc/dcaenc.c	Wed Mar 26 06:50:59 2008
@@ -246,7 +246,7 @@ static void put_primary_audio_header(DCA
 static uint32_t quantize(int32_t d)
 {
     d = d >> 16;
-    return d & 0xffff;
+    return d & 0xfffe; //XXX: this is done to avoid false syncwords
 }
 
 



More information about the FFmpeg-soc mailing list