diff --git a/docs/gst_plugins_cache.json b/docs/gst_plugins_cache.json index 016fbca025..784d7ddae5 100644 --- a/docs/gst_plugins_cache.json +++ b/docs/gst_plugins_cache.json @@ -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" }, diff --git a/ext/libav/gstavcodecmap.c b/ext/libav/gstavcodecmap.c index 46885303dc..b5be4bb7a5 100644 --- a/ext/libav/gstavcodecmap.c +++ b/ext/libav/gstavcodecmap.c @@ -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")) {