changeset 1235:d88550cf8afe libavformat

use ternary
author bcoudurier
date Mon, 07 Aug 2006 14:09:17 +0000
parents 765ab959c70d
children a2cc205d79f1
files movenc.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/movenc.c	Mon Aug 07 14:06:23 2006 +0000
+++ b/movenc.c	Mon Aug 07 14:09:17 2006 +0000
@@ -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 */