From b841fd4c8a8cbb95c0652be3013694e1381334d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Thu, 13 Jun 2019 16:14:31 -0400 Subject: [PATCH] rtph265pay: Define and use FU_A_TYPE_ID Align with rtph264pay --- gst/rtp/gstrtph265pay.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/rtp/gstrtph265pay.c b/gst/rtp/gstrtph265pay.c index 8e85c69120..0ef9e57d67 100644 --- a/gst/rtp/gstrtph265pay.c +++ b/gst/rtp/gstrtph265pay.c @@ -35,6 +35,8 @@ #include "gstrtph265pay.h" #include "gstrtputils.h" +#define FU_TYPE_ID 49 + GST_DEBUG_CATEGORY_STATIC (rtph265pay_debug); #define GST_CAT_DEFAULT (rtph265pay_debug) @@ -1063,8 +1065,8 @@ gst_rtp_h265_pay_payload_nal (GstRTPBasePayload * basepayload, end = 1; } - /* PayloadHdr (type = 49) */ - payload[0] = (nal_header[0] & 0x81) | (49 << 1); + /* PayloadHdr (type = FU_TYPE_ID (49)) */ + payload[0] = (nal_header[0] & 0x81) | (FU_TYPE_ID << 1); payload[1] = nal_header[1]; /* If it's the last fragment and the end of this au, mark the end of