mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 11:40:22 +00:00
ixed some more warnings
This commit is contained in:
@@ -829,7 +829,7 @@ bool setup_codecs_and_controls_from_sdp(FILE *sdp_file, void *state) {
|
||||
if(tmpBuff!=NULL){
|
||||
if ((unsigned) countT < sizeof tracks / sizeof tracks[0]) {
|
||||
//debug_msg("track = %s\n",tmpBuff);
|
||||
strncpy(tracks[countT],tmpBuff,MIN(strlen(tmpBuff)-2, sizeof tracks[countT] - 1));
|
||||
strncpy(tracks[countT], tmpBuff, sizeof tracks[countT] - 1);
|
||||
tracks[countT][MIN(strlen(tmpBuff)-2, sizeof tracks[countT] - 1)] = '\0';
|
||||
countT++;
|
||||
} else {
|
||||
|
||||
@@ -399,6 +399,7 @@ aud_ctx_set_ch_layout(struct AVCodecContext *ctx, int ch_count, bool raw)
|
||||
}
|
||||
av_channel_layout_default(&ctx->ch_layout, ch_count);
|
||||
#else
|
||||
(void) raw;
|
||||
ctx->channel_layout = av_get_default_channel_layout(ch_count);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user