mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
codec map: Add a mapping for the OKI ADPCM variant.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-libav/-/merge_requests/111>
This commit is contained in:
parent
f29e9dfe9c
commit
d3c4740fb6
2 changed files with 7 additions and 1 deletions
|
@ -1068,7 +1068,7 @@
|
|||
"long-name": "libav ADPCM IMA Dialogic OKI decoder",
|
||||
"pad-templates": {
|
||||
"sink": {
|
||||
"caps": "unknown/unknown:\n",
|
||||
"caps": "audio/x-adpcm:\n layout: oki\n",
|
||||
"direction": "sink",
|
||||
"presence": "always"
|
||||
},
|
||||
|
|
|
@ -1983,6 +1983,7 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
|
|||
case AV_CODEC_ID_ADPCM_IMA_WAV:
|
||||
case AV_CODEC_ID_ADPCM_IMA_DK3:
|
||||
case AV_CODEC_ID_ADPCM_IMA_DK4:
|
||||
case AV_CODEC_ID_ADPCM_IMA_OKI:
|
||||
case AV_CODEC_ID_ADPCM_IMA_WS:
|
||||
case AV_CODEC_ID_ADPCM_IMA_SMJPEG:
|
||||
case AV_CODEC_ID_ADPCM_IMA_AMV:
|
||||
|
@ -2022,6 +2023,9 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
|
|||
case AV_CODEC_ID_ADPCM_IMA_DK4:
|
||||
layout = "dk4";
|
||||
break;
|
||||
case AV_CODEC_ID_ADPCM_IMA_OKI:
|
||||
layout = "oki";
|
||||
break;
|
||||
case AV_CODEC_ID_ADPCM_IMA_WS:
|
||||
layout = "westwood";
|
||||
break;
|
||||
|
@ -4167,6 +4171,8 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context)
|
|||
id = AV_CODEC_ID_ADPCM_IMA_DK3;
|
||||
} else if (!strcmp (layout, "dk4")) {
|
||||
id = AV_CODEC_ID_ADPCM_IMA_DK4;
|
||||
} else if (!strcmp (layout, "oki")) {
|
||||
id = AV_CODEC_ID_ADPCM_IMA_OKI;
|
||||
} else if (!strcmp (layout, "westwood")) {
|
||||
id = AV_CODEC_ID_ADPCM_IMA_WS;
|
||||
} else if (!strcmp (layout, "iss")) {
|
||||
|
|
Loading…
Reference in a new issue