Merge pull request #2121 from cg2121/fix-warning

rtmp-stream: Fix comparison between signed and unsigned ints
This commit is contained in:
Jim
2019-10-15 22:24:10 -07:00
committed by GitHub

View File

@@ -1342,7 +1342,7 @@ static void check_to_drop_frames(struct rtmp_stream *stream, bool pframes)
return;
}
if (buffer_duration_usec >= DBR_TRIGGER_USEC) {
if ((uint64_t)buffer_duration_usec >= DBR_TRIGGER_USEC) {
pthread_mutex_lock(&stream->dbr_mutex);
bitrate_changed = dbr_bitrate_lowered(stream);
pthread_mutex_unlock(&stream->dbr_mutex);