[FFmpeg-soc] [soc]: r2414 - alacenc/alacenc.c

jai_menon subversion at mplayerhq.hu
Mon Jun 9 05:37:27 CEST 2008


Author: jai_menon
Date: Mon Jun  9 05:37:27 2008
New Revision: 2414

Log:
simplify code in write_frame_header

Modified:
   alacenc/alacenc.c

Modified: alacenc/alacenc.c
==============================================================================
--- alacenc/alacenc.c	(original)
+++ alacenc/alacenc.c	Mon Jun  9 05:37:27 2008
@@ -93,7 +93,7 @@ static void write_frame_header(AlacEncod
     put_bits(&s->pbctx, 16, 0);                             // Seems to be zero
     put_bits(&s->pbctx, 1,  1);                             // Sample count is in the header
     put_bits(&s->pbctx, 2,  0);                             // FIXME: Wasted bytes field
-    put_bits(&s->pbctx, 1,  (s->compression_level==0)?1:0); // Audio block is verbatim
+    put_bits(&s->pbctx, 1,  !s->compression_level); // Audio block is verbatim
     put_bits(&s->pbctx, 32, s->avctx->frame_size);          // No. of samples in the frame
 }
 



More information about the FFmpeg-soc mailing list