gst-plugins-good: rtph264pay: Force baseline is profile-level-id is unspecified

Olivier Crête tester at kemper.freedesktop.org
Mon Feb 20 11:31:11 PST 2012


Module: gst-plugins-good
Branch: master
Commit: 1fe69911a4b4a2097c5131cdb377a8b63c4a4790
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=1fe69911a4b4a2097c5131cdb377a8b63c4a4790

Author: Olivier Crête <olivier.crete at collabora.com>
Date:   Mon Feb 20 12:22:12 2012 -0500

rtph264pay: Force baseline is profile-level-id is unspecified

---

 gst/rtp/gstrtph264pay.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c
index 9f5006e..87c9b7e 100644
--- a/gst/rtp/gstrtph264pay.c
+++ b/gst/rtp/gstrtph264pay.c
@@ -361,7 +361,17 @@ gst_rtp_h264_pay_getcaps (GstBaseRTPPayload * 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);



More information about the gstreamer-commits mailing list