提交 e00feef7 编写于 作者: R Richard Stanway

libobs: Ignore non-fatal ffmpeg return values during remux

Similar to 315fbd6f and 6071098a, ignore non-fatal errors during the
remux process. It's possible OBS itself writes a file that generates
these errors when remuxed.
上级 bf4ad780
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册