libobs/media-io: Prevent overwriting of remux input

master
Richard Stanway 2018-08-12 17:04:49 +02:00
parent a2bc0f2e4f
commit 41b7f85332
No known key found for this signature in database
GPG Key ID: AAC1E5265D71B3FD
1 changed files with 3 additions and 0 deletions

View File

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