From 57ef6acc3944e5c98a39819bdd42d3c6e017914e Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Mon, 7 Aug 2006 14:09:17 +0000 Subject: [PATCH] use ternary Originally committed as revision 5946 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/movenc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index e214c23..b9c4a1d 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.7.4