From c7feb9d662d73e26e59b60552011116ec1121430 Mon Sep 17 00:00:00 2001 From: Good Guy Date: Thu, 29 Oct 2020 10:50:56 -0600 Subject: [PATCH] fix compile err vicon vframes in with-commercial build (from mehw) --- cinelerra-5.1/cinelerra/dbwindow.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinelerra-5.1/cinelerra/dbwindow.C b/cinelerra-5.1/cinelerra/dbwindow.C index efb10b8f..98070234 100644 --- a/cinelerra-5.1/cinelerra/dbwindow.C +++ b/cinelerra-5.1/cinelerra/dbwindow.C @@ -389,7 +389,7 @@ VFrame *DbWindowVIcon::frame() { if( seq_no >= images.size() ) load_frames(lbox->gui->dwindow->mdb); - return *images[seq_no]; + return images[seq_no]->vfrm; } int64_t DbWindowVIcon::set_seq_no(int64_t no) @@ -418,7 +418,7 @@ void DbWindowVIcon::read_frames(DbWindow::MDb *mdb) if( frame_id < 0 ) continue; int swidth = (SWIDTH+1) & ~1, sheight = (SHEIGHT+1) & ~1; VIFrame *vifrm = new VIFrame(swidth, sheight, BC_YUV420P); - VFrame *img = *vifrm; + VFrame *img = vifrm->vfrm; memset(img->get_y(),0x00,swidth * sheight); memset(img->get_u(),0x80,swidth/2 * sheight/2); memset(img->get_v(),0x80,swidth/2 * sheight/2); -- 2.26.2