X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Falpha%2Falpha.C;h=f733033e7d3413e737139d01a5afd26735c77ab9;hb=13a039ef755e81e65c9479b4b615fd89bfe3e038;hp=87f141e913de71470557e38bff5b187150184402;hpb=04293346a5ef49683cfa6ca3a98ef6cbfcdf7732;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/alpha/alpha.C b/cinelerra-5.1/plugins/alpha/alpha.C index 87f141e9..f733033e 100644 --- a/cinelerra-5.1/plugins/alpha/alpha.C +++ b/cinelerra-5.1/plugins/alpha/alpha.C @@ -133,15 +133,8 @@ int AlphaMain::process_buffer(VFrame *frame, { load_configuration(); - int color_model = frame->get_color_model(); - int need_alpha = BC_CModels::has_alpha(color_model); - if( need_alpha ) { - read_frame(frame, 0, start_position, - frame_rate, get_use_opengl()); - } - int w = frame->get_w(); - int h = frame->get_h(); - + read_frame(frame, 0, start_position, frame_rate, get_use_opengl()); + int w = frame->get_w(), h = frame->get_h(); #define MAIN_LOOP(type, components, is_yuv, max) do { \ if( components == 4 ) { \