From adb4e5b2755a5828b97e173716cde918cb350a68 Mon Sep 17 00:00:00 2001
From: bcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Date: Mon, 7 Aug 2006 14:09:17 +0000
Subject: [PATCH] use ternary

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5946 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
---
 libavformat/movenc.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index e214c23a9..b9c4a1d63 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -365,11 +365,7 @@ static int mov_write_audio_tag(ByteIOContext *pb, MOVTrack* track)
                  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 */
-- 
2.25.4