Commit c096ebca authored by Baptiste Coudurier's avatar Baptiste Coudurier

vbr compression id is only used in mov

Originally committed as revision 5945 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 30aee296
...@@ -341,13 +341,13 @@ static const CodecTag codec_movaudio_tags[] = { ...@@ -341,13 +341,13 @@ static const CodecTag codec_movaudio_tags[] = {
static int mov_write_audio_tag(ByteIOContext *pb, MOVTrack* track) static int mov_write_audio_tag(ByteIOContext *pb, MOVTrack* track)
{ {
offset_t pos = url_ftell(pb); 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_MP3 || (track->enc->codec_id == CODEC_ID_AAC ||
track->enc->codec_id == CODEC_ID_AMR_NB; track->enc->codec_id == CODEC_ID_MP3 ||
int version = track->mode == MODE_MOV && track->enc->codec_id == CODEC_ID_AMR_NB);
(vbr || int version = vbr ||
track->enc->codec_id == CODEC_ID_PCM_S32LE || 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_be32(pb, 0); /* size */
put_le32(pb, track->tag); // store it byteswapped put_le32(pb, track->tag); // store it byteswapped
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment