Mercurial > hg > easaier-soundaccess
diff sv/videoio/SDL_ffmpeg.cpp @ 167:2ac52ea3c1c4
video mouse events are in SDL now.
The code is really better now, but there is a display bug when you zoom in, zoom out
author | benoitrigolleau |
---|---|
date | Fri, 16 Nov 2007 15:18:44 +0000 |
parents | c946c19e6329 |
children | 269562a2b89c |
line wrap: on
line diff
--- a/sv/videoio/SDL_ffmpeg.cpp Fri Nov 16 13:17:55 2007 +0000 +++ b/sv/videoio/SDL_ffmpeg.cpp Fri Nov 16 15:18:44 2007 +0000 @@ -609,8 +609,9 @@ // if new timestamp is from future, we proceed // if(buf->timestamp >= SDL_ffmpegGetPosition(file)) // { - int w=320*zoomFivan; - int h=240*zoomFivan; + int w=(int)(zoomFivan*320+0.5); + int h=(int)(zoomFivan*240+0.5); + if ((w>file->vs[file->videoStream]->width)||(h>file->vs[file->videoStream]->height)){ w=file->vs[file->videoStream]->width; h=file->vs[file->videoStream]->height;