wfd: Fix coverity issue - INTEGER_OVERFLOW
[platform/upstream/gst-plugins-tizen.git] / wfdtsdemux / gstwfdh264parser.c
index 567f078..6a47176 100644 (file)
@@ -719,7 +719,7 @@ gst_wfd_h264_parser_parse_buffering_period (GstWFDH264NalParser * nalparser,
   READ_UE_ALLOWED (nr, sps_id, 0, GST_H264_MAX_SPS_COUNT - 1);
   sps = gst_wfd_h264_parser_get_sps (nalparser, sps_id);
   if (!sps) {
-    GST_WARNING ("couldn't find associated sequence parameter set with id: %d",
+    GST_WARNING ("couldn't find associated sequence parameter set with id: %u",
         sps_id);
     return GST_H264_PARSER_BROKEN_LINK;
   }
@@ -1490,7 +1490,7 @@ gst_wfd_h264_parse_pps (GstWFDH264NalParser * nalparser, GstWFDH264NalUnit * nal
 {
   WFDNalReader nr;
   GstWFDH264SPS *sps;
-  gint sps_id;
+  guint8 sps_id;
   guint8 pic_scaling_matrix_present_flag;
   gint qp_bd_offset;
 
@@ -1504,7 +1504,7 @@ gst_wfd_h264_parse_pps (GstWFDH264NalParser * nalparser, GstWFDH264NalUnit * nal
 
   sps = gst_wfd_h264_parser_get_sps (nalparser, sps_id);
   if (!sps) {
-    GST_WARNING ("couldn't find associated sequence parameter set with id: %d",
+    GST_WARNING ("couldn't find associated sequence parameter set with id: %u",
         sps_id);
     return GST_H264_PARSER_BROKEN_LINK;
   }