libobs: Ignore non-fatal ffmpeg return values during remux

Similar to 315fbd6 and 6071098, 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:
Richard Stanway
2020-12-02 21:04:44 +01:00
parent bf4ad780b5
commit e00feef7ab

View File

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