vbr compression id is only used in mov

Originally committed as revision 5945 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Baptiste Coudurier 19 years ago
parent 30aee296ea
commit c096ebca48
  1. 10
      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 ||
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 = track->mode == MODE_MOV &&
(vbr ||
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);
track->enc->codec_id == CODEC_ID_PCM_S24LE;
put_be32(pb, 0); /* size */
put_le32(pb, track->tag); // store it byteswapped

Loading…
Cancel
Save