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

Michael Niedermayer michaelni
Sat Dec 23 15:20:36 CET 2006


On Thu, Dec 21, 2006 at 04:52:09PM -0600, 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.

seperate issue seperate patch please

> The auto_resize var is to ensure the previous behavior if the user does 
> supply those -x and -y arguments.

screen_width / screen_height should either be set to the dimensions of
the video or should be at 0 by default and then be overridden by
the video w/h if they are 0 where used

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061223/aeb2ffcf/attachment.pgp>

More information about the ffmpeg-devel mailing list