# HG changeset patch # User alex # Date 1044375294 0 # Node ID 737c44487ebcfe8d073dad33019bbee678020d55 # Parent b5b87f777d76768ca1e90df8615f6fb7bd007f85 10l, avoid getting num_of_buffers=0 diff -r b5b87f777d76 -r 737c44487ebc libvo/vo_dga.c --- a/libvo/vo_dga.c Tue Feb 04 15:45:45 2003 +0000 +++ b/libvo/vo_dga.c Tue Feb 04 16:14:54 2003 +0000 @@ -611,11 +611,13 @@ else vo_dga_nr_video_buffers = 1; + if (vo_dga_nr_video_buffers > MAX_NR_VIDEO_BUFFERS) + vo_dga_nr_video_buffers = MAX_NR_VIDEO_BUFFERS; + if (vo_dga_nr_video_buffers <= 0) + vo_dga_nr_video_buffers = 1; + vo_dga_current_video_buffer = 0; - if(MAX_NR_VIDEO_BUFFERS < vo_dga_nr_video_buffers) - vo_dga_nr_video_buffers = MAX_NR_VIDEO_BUFFERS; - for(i = 0; i < vo_dga_nr_video_buffers; i++) { vo_dga_video_buffer[i].y = i * view_port_height;