From c096ebca48e5c4c55fe838ac3cd7e5b6ac812054 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Mon, 7 Aug 2006 14:06:23 +0000 Subject: [PATCH] vbr compression id is only used in mov Originally committed as revision 5945 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/movenc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index de9b4a5..e214c23 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -341,13 +341,13 @@ static const CodecTag codec_movaudio_tags[] = { static int mov_write_audio_tag(ByteIOContext *pb, MOVTrack* track) { offset_t pos = url_ftell(pb); - int vbr= track->enc->codec_id == CODEC_ID_AAC || - track->enc->codec_id == CODEC_ID_MP3 || - track->enc->codec_id == CODEC_ID_AMR_NB; - int version = track->mode == MODE_MOV && - (vbr || - track->enc->codec_id == CODEC_ID_PCM_S32LE || - track->enc->codec_id == CODEC_ID_PCM_S24LE); + int vbr= track->mode == MODE_MOV && + (track->enc->codec_id == CODEC_ID_AAC || + track->enc->codec_id == CODEC_ID_MP3 || + track->enc->codec_id == CODEC_ID_AMR_NB); + int version = vbr || + track->enc->codec_id == CODEC_ID_PCM_S32LE || + track->enc->codec_id == CODEC_ID_PCM_S24LE; put_be32(pb, 0); /* size */ put_le32(pb, track->tag); // store it byteswapped -- 2.7.4