diff options
author | Edward Hervey <bilboed@bilboed.com> | 2009-03-10 21:14:21 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-03-10 21:14:21 +0100 |
commit | 45ec23e37c90f189fdb5d2ddda7154647c1d0be3 (patch) | |
tree | 35f5795e3b65881f0b15c597dbb7ca6d3bc80466 | |
parent | 1e689f057ff8969ae6cda8093d5a92a5490dedaa (diff) |
codecmapping: Fix caps for ATRAC3. Fixes #574663
-rw-r--r-- | ext/ffmpeg/gstffmpegcodecmap.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/ffmpeg/gstffmpegcodecmap.c b/ext/ffmpeg/gstffmpegcodecmap.c index 3ac1272..5874116 100644 --- a/ext/ffmpeg/gstffmpegcodecmap.c +++ b/ext/ffmpeg/gstffmpegcodecmap.c @@ -590,7 +590,9 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id, break; case CODEC_ID_ATRAC3: - caps = gst_ff_aud_caps_new (context, codec_id, "audio/atrac3", NULL); + caps = + gst_ff_aud_caps_new (context, codec_id, "audio/x-vnd.sony.atrac3", + NULL); break; case CODEC_ID_DTS: @@ -2721,7 +2723,8 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context) } else if (!strcmp (mimetype, "audio/x-eac3")) { id = CODEC_ID_EAC3; audio = TRUE; - } else if (!strcmp (mimetype, "audio/atrac3")) { + } else if (!strcmp (mimetype, "audio/x-vnd.sony.atrac3") || + !strcmp (mimetype, "audio/atrac3")) { id = CODEC_ID_ATRAC3; audio = TRUE; } else if (!strcmp (mimetype, "audio/x-dts")) { |