mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
ext/ffmpeg/gstffmpegcodecmap.c: Add codec mapping for RealAudio G2 (Cook) codec.
Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps), (gst_ffmpeg_caps_to_codecid), (gst_ffmpeg_get_codecid_longname): Add codec mapping for RealAudio G2 (Cook) codec.
This commit is contained in:
parent
c76561639d
commit
19bc30d505
2 changed files with 25 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-02-19 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps),
|
||||
(gst_ffmpeg_caps_to_codecid), (gst_ffmpeg_get_codecid_longname):
|
||||
Add codec mapping for RealAudio G2 (Cook) codec.
|
||||
|
||||
2006-02-19 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* HACKING:
|
||||
|
|
|
@ -732,8 +732,20 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
|
|||
|
||||
case CODEC_ID_RA_144:
|
||||
case CODEC_ID_RA_288:
|
||||
case CODEC_ID_COOK:
|
||||
{
|
||||
gint version = (codec_id == CODEC_ID_RA_144) ? 1 : 2;
|
||||
gint version;
|
||||
switch (codec_id) {
|
||||
case CODEC_ID_RA_144:
|
||||
version = 1;
|
||||
break;
|
||||
case CODEC_ID_RA_288:
|
||||
version = 2;
|
||||
break;
|
||||
case CODEC_ID_COOK:
|
||||
version = 8;
|
||||
break;
|
||||
}
|
||||
|
||||
/* FIXME: properties? */
|
||||
caps = GST_FF_AUD_CAPS_NEW ("audio/x-pn-realaudio",
|
||||
|
@ -1897,6 +1909,9 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context)
|
|||
case 2:
|
||||
id = CODEC_ID_RA_288;
|
||||
break;
|
||||
case 8:
|
||||
id = CODEC_ID_COOK;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (id != CODEC_ID_NONE)
|
||||
|
@ -2328,6 +2343,9 @@ gst_ffmpeg_get_codecid_longname (enum CodecID codec_id)
|
|||
case CODEC_ID_RA_288:
|
||||
name = "Realaudio 28k8bps";
|
||||
break;
|
||||
case CODEC_ID_COOK:
|
||||
name = "Realaudio G2 (Cook) audio";
|
||||
break;
|
||||
case CODEC_ID_ROQ_DPCM:
|
||||
name = "RoQ DPCM audio";
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue