[Ffmpeg-cvslog] r5946 - trunk/libavformat/movenc.c

bcoudurier subversion
Mon Aug 7 16:09:17 CEST 2006


Author: bcoudurier
Date: Mon Aug  7 16:09:17 2006
New Revision: 5946

Modified:
   trunk/libavformat/movenc.c

Log:
use ternary

Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	(original)
+++ trunk/libavformat/movenc.c	Mon Aug  7 16:09:17 2006
@@ -365,11 +365,7 @@
                  to be a good way to get number of bits of audio */
     put_be16(pb, 0x10); /* Reserved */
 
-    if(vbr) {
-        put_be16(pb, 0xfffe); /* compression ID (vbr)*/
-    } else {
-        put_be16(pb, 0); /* compression ID (= 0) */
-    }
+    put_be16(pb, vbr ? 0xfffe : 0); /* compression ID */
     put_be16(pb, 0); /* packet size (= 0) */
     put_be16(pb, track->timescale); /* Time scale */
     put_be16(pb, 0); /* Reserved */




More information about the ffmpeg-cvslog mailing list