mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
applemedia: atdec: fix aac decoding on Mavericks
This commit is contained in:
parent
0e3917b9c0
commit
7a8d918472
1 changed files with 3 additions and 2 deletions
|
@ -219,9 +219,10 @@ gst_caps_to_at_format (GstCaps * caps, AudioStreamBasicDescription * format)
|
|||
format->mSampleRate = rate;
|
||||
format->mChannelsPerFrame = channels;
|
||||
|
||||
if (can_intersect_static_caps (caps, &aac_caps))
|
||||
if (can_intersect_static_caps (caps, &aac_caps)) {
|
||||
format->mFormatID = kAudioFormatMPEG4AAC;
|
||||
else if (can_intersect_static_caps (caps, &mp3_caps))
|
||||
format->mFramesPerPacket = 1024;
|
||||
} else if (can_intersect_static_caps (caps, &mp3_caps))
|
||||
format->mFormatID = kAudioFormatMPEGLayer3;
|
||||
else if (can_intersect_static_caps (caps, &raw_caps)) {
|
||||
GstAudioFormat audio_format;
|
||||
|
|
Loading…
Reference in a new issue