提交 2b4938c8 编写于 作者: Z Zhang Rui

ijksdl/vout: fill dst pic after overlay filled

上级 79486246
......@@ -301,20 +301,31 @@ int SDL_VoutFFmpeg_ConvertFrame(
return -1;
}
overlay_fill(overlay, opaque->managed_frame, opaque->planes);
// setup frame managed
for (int i = 0; i < overlay->planes; ++i) {
swscale_dst_pic.data[i] = overlay->pixels[i];
swscale_dst_pic.linesize[i] = overlay->pitches[i];
}
overlay_fill(overlay, opaque->managed_frame, opaque->planes);
if (need_swap_uv)
FFSWAP(Uint8*, swscale_dst_pic.data[1], swscale_dst_pic.data[2]);
}
// swscale / direct draw
/*
ALOGE("ijk_image_convert w=%d, h=%d, df=%d, dd=%d, dl=%d, sf=%d, sd=%d, sl=%d",
(int)frame->width,
(int)frame->height,
(int)dst_format,
(int)swscale_dst_pic.data[0],
(int)swscale_dst_pic.linesize[0],
(int)frame->format,
(int)(const uint8_t**) frame->data,
(int)frame->linesize);
*/
if (use_linked_frame) {
// do nothing
} else if (ijk_image_convert(frame->width, frame->height,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册