mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-22 15:24:16 +08:00
fix(ffmpeg): fix error linesize (#4472)
Signed-off-by: XiaoweiYan <yanxiaowei@xiaomi.com> Co-authored-by: XiaoweiYan <yanxiaowei@xiaomi.com>
This commit is contained in:
@@ -417,7 +417,7 @@ static int ffmpeg_output_video_frame(struct ffmpeg_context_s * ffmpeg_ctx)
|
||||
}
|
||||
|
||||
if(!ffmpeg_ctx->has_alpha) {
|
||||
int lv_linesize = sizeof(lv_color_t) * width;
|
||||
int lv_linesize = lv_color_format_get_size(LV_COLOR_FORMAT_NATIVE) * width;
|
||||
int dst_linesize = ffmpeg_ctx->video_dst_linesize[0];
|
||||
if(dst_linesize != lv_linesize) {
|
||||
LV_LOG_WARN("ffmpeg linesize = %d, but lvgl image require %d",
|
||||
|
||||
Reference in New Issue
Block a user