libobs: Ignore non-fatal ffmpeg return values during remux
Similar to315fbd6
and6071098
, ignore non-fatal errors during the remux process. It's possible OBS itself writes a file that generates these errors when remuxed.
This commit is contained in:
@@ -224,6 +224,12 @@ static inline int process_packets(media_remux_job_t job,
|
||||
if (ret < 0) {
|
||||
blog(LOG_ERROR, "media_remux: Error muxing packet: %s",
|
||||
av_err2str(ret));
|
||||
|
||||
/* Treat "Invalid data found when processing input" and
|
||||
* "Invalid argument" as non-fatal */
|
||||
if (ret == AVERROR_INVALIDDATA || ret == EINVAL)
|
||||
continue;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user