Commit 9d623e0d authored by michael's avatar michael

AAC in mov/mp4 patch by (Gildas Bazin <gbazin at altern dot org>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3359 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7b24778a
...@@ -282,7 +282,16 @@ static int mov_write_audio_tag(ByteIOContext *pb, MOVTrack* track) ...@@ -282,7 +282,16 @@ static int mov_write_audio_tag(ByteIOContext *pb, MOVTrack* track)
/* TODO: Currently hard-coded to 16-bit, there doesn't seem /* TODO: Currently hard-coded to 16-bit, there doesn't seem
to be a good way to get number of bits of audio */ to be a good way to get number of bits of audio */
put_be16(pb, 0x10); /* Reserved */ put_be16(pb, 0x10); /* Reserved */
put_be16(pb, 0); /* compression ID (= 0) */
if(track->enc->codec_id == CODEC_ID_AAC ||
track->enc->codec_id == CODEC_ID_MP3)
{
put_be16(pb, 0xfffe); /* compression ID (vbr)*/
}
else
{
put_be16(pb, 0); /* compression ID (= 0) */
}
put_be16(pb, 0); /* packet size (= 0) */ put_be16(pb, 0); /* packet size (= 0) */
put_be16(pb, track->timescale); /* Time scale */ put_be16(pb, track->timescale); /* Time scale */
put_be16(pb, 0); /* Reserved */ put_be16(pb, 0); /* Reserved */
......
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