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

Steven Sheehy steven.sheehy
Thu Dec 21 23:52:09 CET 2006

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.

Steven Sheehy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resize.diff
Type: text/x-patch
Size: 1775 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061221/f76915f9/attachment.bin>

More information about the ffmpeg-devel mailing list