X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fcinelerra%2Ffilepng.C;h=d6fd37966e7751d95d714eeb3e0982ff21a458c6;hb=4ed99d3ff21fc5809ff2a2927f6d99413f80a168;hp=0cb6445bec64c6c0f7ffd186085925735499313c;hpb=90dc26fd7a112ed473878b876f2ed671e2bad8f8;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/filepng.C b/cinelerra-5.1/cinelerra/filepng.C index 0cb6445b..d6fd3796 100644 --- a/cinelerra-5.1/cinelerra/filepng.C +++ b/cinelerra-5.1/cinelerra/filepng.C @@ -216,8 +216,8 @@ int FilePNG::write_frame(VFrame *frame, VFrame *data, FrameWriterUnit *unit) native_cmodel = asset->png_use_alpha ? BC_RGBA8888 : BC_RGB888; if(frame->get_color_model() != native_cmodel) { - if(!png_unit->temp_frame) png_unit->temp_frame = new VFrame(0, - -1, asset->width, asset->height, native_cmodel, -1); + if(!png_unit->temp_frame) png_unit->temp_frame = + new VFrame(asset->width, asset->height, native_cmodel, 0); png_unit->temp_frame->transfer_from(frame); output_frame = png_unit->temp_frame;