From 18899cf94dc753862bdbf1e03ef141e6e286e6ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Mon, 20 Feb 2012 12:22:12 -0500 Subject: [PATCH] rtph264pay: Force baseline is profile-level-id is unspecified --- gst/rtp/gstrtph264pay.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c index 2be9e00aaf..93ddf7990a 100644 --- a/gst/rtp/gstrtph264pay.c +++ b/gst/rtp/gstrtph264pay.c @@ -357,7 +357,17 @@ gst_rtp_h264_pay_getcaps (GstRTPBasePayload * payload, GstPad * pad, } gst_structure_take_value (new_s, "level", &levels); } + } else { + /* Invalid profile-level-id means baseline */ + + gst_structure_set (new_s, + "profile", G_TYPE_STRING, "constrained-baseline", NULL); } + } else { + /* No profile-level-id also means baseline */ + + gst_structure_set (new_s, + "profile", G_TYPE_STRING, "constrained-baseline", NULL); } gst_caps_merge_structure (caps, new_s);