Commit d3c4740f authored by Jan Schmidt's avatar Jan Schmidt Committed by Sebastian Dröge

codec map: Add a mapping for the OKI ADPCM variant.

Part-of: <!111>
parent f29e9dfe
Pipeline #243387 waiting for manual action with stages
in 32 seconds
......@@ -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")) {
......
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