libobs/media-io: Prevent overwriting of remux input

上级 a2bc0f2e
......@@ -143,6 +143,9 @@ bool media_remux_job_create(media_remux_job_t *job, const char *in_filename,
if (!os_file_exists(in_filename))
return false;
if (strcmp(in_filename, out_filename) == 0)
return false;
*job = (media_remux_job_t)bzalloc(sizeof(struct media_remux_job));
if (!*job)
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册