fixes for filelist read_frame
[goodguy/history.git] / cinelerra-5.1 / guicast / vframe.C
index 0ae65a66a62eaf06b97a009792a9e8b758d69b73..706185824d441636d7570fe78174d162d06ed3cb 100644 (file)
@@ -1080,6 +1080,7 @@ int VFrame::copy_from(VFrame *frame)
                        break;
        }
 
+       params->copy_from(frame->params);
        return 0;
 }
 
@@ -1131,6 +1132,7 @@ int VFrame::transfer_from(VFrame *that, int bg_color, int in_x, int in_y, int in
                        that->get_bytes_per_line(),
                bg_color);
 #endif
+       params->copy_from(that->params);
        return 0;
 }
 
@@ -1298,9 +1300,6 @@ void VFrame::set_pixel_color(int rgb)
        int ig = 0xff & (pixel_rgb >> 8);
        int ib = 0xff & (pixel_rgb >> 0);
        bc_rgb2yuv(ir,ig,ib, ir,ig,ib);
-       bclamp(ir,0,255);
-       bclamp(ig,0,255);
-       bclamp(ib,0,255);
        pixel_yuv =  (ir<<16) | (ig<<8) | (ib<<0);
 }