Skip to content

Commit

Permalink
Merge pull request obsproject#676 from wt/fix_some_printf_compiler_wa…
Browse files Browse the repository at this point in the history
…rnings

obs-ffmpeg: Fix a couple printf compiler warnings.
  • Loading branch information
jp9000 authored Oct 31, 2016
2 parents 1728a5d + 40a5436 commit 9b50334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/obs-ffmpeg/obs-ffmpeg-aac.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static void *aac_create(obs_data_t *settings, obs_encoder_t *encoder)
enc->context->cutoff = cutoff;
}

info("bitrate: %d, channels: %d",
info("bitrate: %" PRId64 ", channels: %d",
enc->context->bit_rate / 1000, enc->context->channels);

init_sizes(enc, audio);
Expand Down
2 changes: 1 addition & 1 deletion plugins/obs-outputs/rtmp-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ static void check_to_drop_frames(struct rtmp_stream *stream, bool pframes)
buffer_duration_usec = stream->last_dts_usec - first.dts_usec;

if (buffer_duration_usec > drop_threshold) {
debug("buffer_duration_usec: %lld", buffer_duration_usec);
debug("buffer_duration_usec: %" PRId64, buffer_duration_usec);
drop_frames(stream, name, priority, p_min_dts_usec);
}
}
Expand Down

0 comments on commit 9b50334

Please sign in to comment.