mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
matroska-demux: add mapping for Opus audio codec
https://bugzilla.gnome.org/show_bug.cgi?id=727305
This commit is contained in:
parent
517f50f54f
commit
b158a1c068
2 changed files with 4 additions and 0 deletions
|
@ -5339,6 +5339,9 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext *
|
||||||
context->codec_priv_size);
|
context->codec_priv_size);
|
||||||
/* FIXME: mark stream as broken and skip if there are no stream headers */
|
/* FIXME: mark stream as broken and skip if there are no stream headers */
|
||||||
context->send_stream_headers = TRUE;
|
context->send_stream_headers = TRUE;
|
||||||
|
} else if (!strcmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_OPUS)) {
|
||||||
|
caps = gst_caps_new_empty_simple ("audio/x-opus");
|
||||||
|
*codec_name = g_strdup ("Opus");
|
||||||
} else if (!strcmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_ACM)) {
|
} else if (!strcmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_ACM)) {
|
||||||
gst_riff_strf_auds auds;
|
gst_riff_strf_auds auds;
|
||||||
|
|
||||||
|
|
|
@ -378,6 +378,7 @@
|
||||||
#define GST_MATROSKA_CODEC_ID_AUDIO_AAC_MPEG4 "A_AAC/MPEG4/"
|
#define GST_MATROSKA_CODEC_ID_AUDIO_AAC_MPEG4 "A_AAC/MPEG4/"
|
||||||
#define GST_MATROSKA_CODEC_ID_AUDIO_QUICKTIME_QDMC "A_QUICKTIME/QDMC"
|
#define GST_MATROSKA_CODEC_ID_AUDIO_QUICKTIME_QDMC "A_QUICKTIME/QDMC"
|
||||||
#define GST_MATROSKA_CODEC_ID_AUDIO_QUICKTIME_QDM2 "A_QUICKTIME/QDM2"
|
#define GST_MATROSKA_CODEC_ID_AUDIO_QUICKTIME_QDM2 "A_QUICKTIME/QDM2"
|
||||||
|
#define GST_MATROSKA_CODEC_ID_AUDIO_OPUS "A_OPUS"
|
||||||
/* Undefined for now:
|
/* Undefined for now:
|
||||||
#define GST_MATROSKA_CODEC_ID_AUDIO_MPC "A_MPC"
|
#define GST_MATROSKA_CODEC_ID_AUDIO_MPC "A_MPC"
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue