提交 db1e6aa1 编写于 作者: J jp9000

Revert "obs-ffmpeg: Treat errors as fatal for non-network streams in ffmpeg-mux"

This reverts commit 6071098a.
上级 33dc4108
......@@ -857,11 +857,15 @@ int main(int argc, char *argv[])
return ret;
}
bool is_network = ffmpeg_mux_is_network(&ffm);
while (!fail && safe_read(&info, sizeof(info)) == sizeof(info)) {
resize_buf_resize(&rb, info.size);
if (safe_read(rb.buf, info.size) == info.size) {
fail = ffmpeg_mux_packet(&ffm, rb.buf, &info);
bool packet_fail =
ffmpeg_mux_packet(&ffm, rb.buf, &info);
fail = is_network && packet_fail;
} else {
fail = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册