[vlc-devel] [PATCH] Support for rotated MP4 Movies (bug #2882)

Rémi Denis-Courmont remi at remlab.net
Fri Feb 7 20:12:04 CET 2014


Le jeudi 6 février 2014, 23:21:53 Matthias Keiser a écrit :
> From ff4d4b5bf739e13ec2fc6bb85c6cda1b2aae8ad9 Mon Sep 17 00:00:00 2001
> From: Matthias Keiser <matthias at tristan-inc.com>
> Date: Thu, 6 Feb 2014 16:30:41 +0100
> Subject: [PATCH 12/13] vout_display_GetDefaultDisplaySize,
>  vout_display_PlacePicture: take into account video rotation.
> 
> ---
>  src/video_output/display.c | 20 +++++++++++++++-----
>  1 file changed, 15 insertions(+), 5 deletions(-)
> 
> diff --git a/src/video_output/display.c b/src/video_output/display.c
> index b268c18..19548e6 100644
> --- a/src/video_output/display.c
> +++ b/src/video_output/display.c
> @@ -197,6 +197,12 @@ void vout_display_GetDefaultDisplaySize(unsigned
> *width, unsigned *height,
> 
>      *width  = *width  * cfg->zoom.num / cfg->zoom.den;
>      *height = *height * cfg->zoom.num / cfg->zoom.den;
> +
> +    if(source->orientation == ORIENT_ROTATED_90 || source->orientation ==
> ORIENT_ROTATED_270) { +        unsigned store = *width;
> +        *width = *height;
> +        *height = store;
> +    }

Obviously missing cases.

>  }
> 
>  /* */
-- 
Rémi Denis-Courmont
http://www.remlab.net/




More information about the vlc-devel mailing list