Mercurial > libavformat.hg
changeset 1234:765ab959c70d libavformat
vbr compression id is only used in mov
author | bcoudurier |
---|---|
date | Mon, 07 Aug 2006 14:06:23 +0000 |
parents | 99a34915d15a |
children | d88550cf8afe |
files | movenc.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Sun Aug 06 15:29:50 2006 +0000 +++ b/movenc.c Mon Aug 07 14:06:23 2006 +0000 @@ -341,13 +341,13 @@ 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