mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
rtpmp4g(de)pay: Only handle raw aac
rtpmp4g(de)pay should only handle raw AAC streams
This commit is contained in:
parent
daa52708b3
commit
fa32e08d91
2 changed files with 6 additions and 3 deletions
|
@ -43,7 +43,8 @@ static GstStaticPadTemplate gst_rtp_mp4g_depay_src_template =
|
|||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("video/mpeg,"
|
||||
"mpegversion=(int) 4,"
|
||||
"systemstream=(boolean)false;" "audio/mpeg," "mpegversion=(int) 4")
|
||||
"systemstream=(boolean)false;"
|
||||
"audio/mpeg," "mpegversion=(int) 4, " "stream-format=(string)raw")
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_rtp_mp4g_depay_sink_template =
|
||||
|
@ -242,7 +243,8 @@ gst_rtp_mp4g_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
|
|||
if ((str = gst_structure_get_string (structure, "media"))) {
|
||||
if (strcmp (str, "audio") == 0) {
|
||||
srccaps = gst_caps_new_simple ("audio/mpeg",
|
||||
"mpegversion", G_TYPE_INT, 4, NULL);
|
||||
"mpegversion", G_TYPE_INT, 4, "stream-format", G_TYPE_STRING, "raw",
|
||||
NULL);
|
||||
} else if (strcmp (str, "video") == 0) {
|
||||
srccaps = gst_caps_new_simple ("video/mpeg",
|
||||
"mpegversion", G_TYPE_INT, 4,
|
||||
|
|
|
@ -43,7 +43,8 @@ static GstStaticPadTemplate gst_rtp_mp4g_pay_sink_template =
|
|||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("video/mpeg,"
|
||||
"mpegversion=(int) 4,"
|
||||
"systemstream=(boolean)false;" "audio/mpeg," "mpegversion=(int) 4")
|
||||
"systemstream=(boolean)false;"
|
||||
"audio/mpeg," "mpegversion=(int) 4, " "stream-format=(string) raw")
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_rtp_mp4g_pay_src_template =
|
||||
|
|
Loading…
Reference in a new issue