Commit 190f9a26 authored by aurel's avatar aurel

Add A_AAC codec identifier support in matroska.

Patch by Steve Lhomme % slhomme A divxcorp P com %
Original thread:
Date: Fri, 10 Nov 2006 15:22:33 +0100
Subject: [Ffmpeg-devel] [PATCH] Handle "A_AAC" in matroska codec IDs


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6964 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7d39a25e
...@@ -222,7 +222,7 @@ static CodecTags codec_tags[]={ ...@@ -222,7 +222,7 @@ static CodecTags codec_tags[]={
{"A_AC3" , CODEC_ID_AC3}, {"A_AC3" , CODEC_ID_AC3},
{"A_DTS" , CODEC_ID_DTS}, {"A_DTS" , CODEC_ID_DTS},
{"A_VORBIS" , CODEC_ID_VORBIS}, {"A_VORBIS" , CODEC_ID_VORBIS},
{"A_AAC/" , CODEC_ID_AAC}, {"A_AAC" , CODEC_ID_AAC},
{"A_WAVPACK4" , CODEC_ID_WAVPACK}, {"A_WAVPACK4" , CODEC_ID_WAVPACK},
{NULL , CODEC_ID_NONE} {NULL , CODEC_ID_NONE}
/* TODO: AC3-9/10 (?), Real, Musepack, Quicktime */ /* TODO: AC3-9/10 (?), Real, Musepack, Quicktime */
...@@ -2245,7 +2245,7 @@ matroska_read_header (AVFormatContext *s, ...@@ -2245,7 +2245,7 @@ matroska_read_header (AVFormatContext *s,
} }
if (codec_id==CODEC_ID_AAC) { else if (codec_id == CODEC_ID_AAC && !track->codec_priv_size) {
MatroskaAudioTrack *audiotrack = (MatroskaAudioTrack *) track; MatroskaAudioTrack *audiotrack = (MatroskaAudioTrack *) track;
int profile = matroska_aac_profile(track->codec_id); int profile = matroska_aac_profile(track->codec_id);
int sri = matroska_aac_sri(audiotrack->internal_samplerate); int sri = matroska_aac_sri(audiotrack->internal_samplerate);
......
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