Skip to content

Commit 8e558f9

Browse files
committed
Fix warnings about format string.
1 parent cf54b36 commit 8e558f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libde265-dec.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ gst_libde265_dec_set_format (VIDEO_DECODER_BASE * parse, VIDEO_STATE * state)
622622
int j;
623623
if (pos + 3 > size) {
624624
GST_ELEMENT_ERROR (parse, STREAM, DECODE,
625-
("Buffer underrun in extra header (%d >= %d)", pos + 3,
625+
("Buffer underrun in extra header (%d >= %ld)", pos + 3,
626626
size), (NULL));
627627
return FALSE;
628628
}
@@ -632,14 +632,14 @@ gst_libde265_dec_set_format (VIDEO_DECODER_BASE * parse, VIDEO_STATE * state)
632632
for (j = 0; j < nal_count; j++) {
633633
if (pos + 2 > size) {
634634
GST_ELEMENT_ERROR (parse, STREAM, DECODE,
635-
("Buffer underrun in extra nal header (%d >= %d)", pos + 2,
635+
("Buffer underrun in extra nal header (%d >= %ld)", pos + 2,
636636
size), (NULL));
637637
return FALSE;
638638
}
639639
int nal_size = data[pos] << 8 | data[pos + 1];
640640
if (pos + 2 + nal_size > size) {
641641
GST_ELEMENT_ERROR (parse, STREAM, DECODE,
642-
("Buffer underrun in extra nal (%d >= %d)",
642+
("Buffer underrun in extra nal (%d >= %ld)",
643643
pos + 2 + nal_size, size), (NULL));
644644
return FALSE;
645645
}

0 commit comments

Comments
 (0)