[Ffmpeg-devel] [PATCH] Auto-resize ffplay video output

Benoit Fouet benoit.fouet
Fri Dec 22 15:16:43 CET 2006

Steven Sheehy wrote:
> This patch resizes the ffplay window frame to match the dimensions of
> the video being outputted. Previously the frame would be fixed at
> 640x480 regardless of the video's resolution unless the user requested
> a different size with the -x and -y arguments. In my opinion, this is
> not desired behavior since it is much more difficult to attempt to
> resize a video to match its native resolution than it is to resize it
> to some random resolution.
> The patch also fixes the bug where returning from full screen would
> always return to the default dimensions, ignoring any resizing the
> user did before that point before entering full screen.
> The auto_resize var is to ensure the previous behavior if the user
> does supply those -x and -y arguments.
patch works fine... i was wondering whether the SDL_SetVideoMode()
function could be called when video size is known, to avoid the display
window being resized...


More information about the ffmpeg-devel mailing list