Credit Andrew - updating patches for FFmpeg 7.0 as needed since 6.1, now at 7.0,...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / resourcepixmap.C
index 991b85d4c65eb0ee89a9ec62d8478bf3c8df8a6d..5b5a12f86e2def8a786d86d9a8f1b048601d9571 100644 (file)
@@ -238,7 +238,7 @@ VFrame *ResourcePixmap::change_title_color(VFrame *title_bg, int color)
        c.r = color>>16;  c.g = color>>8;  c.b = color>>0;  c.a = 0xff;
        if( BC_CModels::has_alpha(colormodel) && // fast path
            BC_CModels::calculate_pixelsize(colormodel) == sizeof(unsigned) ) {
-               const unsigned gap_rgba = (0xff<<24) |
+               const unsigned gap_rgba = ((uint32_t)(0xff)<<24) |
                        (gap_grey<<16) | (gap_grey<<8) | (gap_grey<<0);
                if( th > 0 ) {
                        unsigned *bp = (unsigned *)bar_rows[0];
@@ -472,7 +472,7 @@ void ResourcePixmap::draw_audio_source(TrackCanvas *canvas, Edit *edit, int x, i
                        }
 
                        if( !mwindow->gui->render_engine ) {
-                               TransportCommand command;
+                               TransportCommand command(mwindow->preferences);
                                command.command = NORMAL_FWD;
                                command.get_edl()->copy_all(edit->nested_edl);
                                command.change_type = CHANGE_ALL;