瀏覽代碼

obs-ffmpeg: Fix compiler warning

Richard Stanway 3 年之前
父節點
當前提交
4c96feafab
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/obs-ffmpeg/obs-ffmpeg-mux.c

+ 1 - 1
plugins/obs-ffmpeg/obs-ffmpeg-mux.c

@@ -702,7 +702,7 @@ static inline bool should_split(struct ffmpeg_muxer *stream,
 static bool send_new_filename(struct ffmpeg_muxer *stream, const char *filename)
 {
 	size_t ret;
-	uint32_t size = strlen(filename);
+	uint32_t size = (uint32_t)strlen(filename);
 	struct ffm_packet_info info = {.type = FFM_PACKET_CHANGE_FILE,
 				       .size = size};