Skip to content

Commit a044f90

Browse files
committed
fix some warnings (gcc 15.1.1)
(the problem with color_printf was passing unsigned char literal as the char* parameter of color_printf)
1 parent c712a3b commit a044f90

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/ndi_common.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ static void close_ndi_library(LIB_HANDLE hNDILib) {
159159
}
160160

161161
#define NDI_PRINT_COPYRIGHT \
162-
color_printf( \
163-
TERM_BOLD TERM_FG_BLUE u8"This application uses NDI® available " \
164-
u8"from https://ndi.video/\n" \
165-
u8"NDI® is a registered trademark of " \
166-
u8"Vizrt NDI AB.\n\n" TERM_RESET); \
162+
color_printf(TERM_BOLD TERM_FG_BLUE "%s\n\n" TERM_RESET, \
163+
u8"This application uses NDI® available " \
164+
u8"from https://ndi.video/\n" \
165+
u8"NDI® is a registered trademark of " \
166+
u8"Vizrt NDI AB."); \
167167
int not_defined_function
168168

169169
#undef MOD_NAME

src/video_capture/rtsp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,7 @@ setup_codecs_and_controls_from_sdp(FILE *sdp_file, struct rtsp_state *rtspState)
10401040
pt, advertised_pt);
10411041
snprintf(codec, SHORT_STR, "?");
10421042
}
1043+
assert(strlen(buf) + strlen(codec) < SHORT_STR);
10431044
snprintf(codec + strlen(codec),
10441045
SHORT_STR - strlen(codec), "%s", buf);
10451046
}

0 commit comments

Comments
 (0)