]> git.sesse.net Git - vlc/commitdiff
vout: set visible resolution of input/output video formats in SpuRenderCreateAndLoadS...
authorFelix Abecassis <felix.abecassis@gmail.com>
Tue, 26 Nov 2013 13:21:31 +0000 (14:21 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 8 Dec 2013 12:46:15 +0000 (13:46 +0100)
Enable video filters using the visible dimension of the picture.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/video_output/vout_subpictures.c

index 416a04c21dcea2fd7ef67d2ccaf0b6a8607e3145..9a16590743c026e352f4d385322f793879c2cbed 100644 (file)
@@ -238,12 +238,16 @@ static filter_t *SpuRenderCreateAndLoadScale(vlc_object_t *object,
     es_format_Init(&scale->fmt_in, VIDEO_ES, 0);
     scale->fmt_in.video.i_chroma = src_chroma;
     scale->fmt_in.video.i_width =
-    scale->fmt_in.video.i_height = 32;
+    scale->fmt_in.video.i_visible_width =
+    scale->fmt_in.video.i_height =
+    scale->fmt_in.video.i_visible_height = 32;
 
     es_format_Init(&scale->fmt_out, VIDEO_ES, 0);
     scale->fmt_out.video.i_chroma = dst_chroma;
     scale->fmt_out.video.i_width =
-    scale->fmt_out.video.i_height = require_resize ? 16 : 32;
+    scale->fmt_out.video.i_visible_width =
+    scale->fmt_out.video.i_height =
+    scale->fmt_out.video.i_visible_height = require_resize ? 16 : 32;
 
     scale->pf_video_buffer_new = spu_new_video_buffer;
     scale->pf_video_buffer_del = spu_del_video_buffer;