提交 919aecfd 编写于 作者: J jp9000

libobs: Fix format not being set for new source frames

With the previous Y800 fix a bug was introduced where the format for the
destination frame wouldn't be set if it wasn't Y800, causing a crash.
上级 db7632e7
......@@ -2238,9 +2238,9 @@ static inline struct obs_source_frame *cache_video(struct obs_source *source,
if (!new_frame) {
struct async_frame new_af;
enum video_format format;
enum video_format format = frame->format;
if (frame->format == VIDEO_FORMAT_Y800)
if (format == VIDEO_FORMAT_Y800)
format = VIDEO_FORMAT_BGRX;
new_frame = obs_source_frame_create(format,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册