Просмотр исходного кода

rtmp-stream: Fix comparison between signed and unsigned ints

Clayton Groeneveld 6 лет назад
Родитель
Сommit
350969a206
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      plugins/obs-outputs/rtmp-stream.c

+ 1 - 1
plugins/obs-outputs/rtmp-stream.c

@@ -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);