[vlc-devel] commit: Set i_visible_width/height, some video filters need it (e.g. croppadd) (Eric Petit )

git version control git at videolan.org
Mon Jun 23 18:55:35 CEST 2008


vlc | branch: master | Eric Petit <eric.petit at lapsus.org> | Mon Jun 23 18:55:14 2008 +0200| [eb691987575a7fd877da56d5c8c1219795e02347]

Set i_visible_width/height, some video filters need it (e.g. croppadd)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eb691987575a7fd877da56d5c8c1219795e02347
---

 modules/stream_out/transcode.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/modules/stream_out/transcode.c b/modules/stream_out/transcode.c
index cc40e4b..1d008b8 100644
--- a/modules/stream_out/transcode.c
+++ b/modules/stream_out/transcode.c
@@ -1666,8 +1666,15 @@ static void transcode_video_encoder_init( sout_stream_t *p_stream,
      f_aspect = f_aspect * i_dst_width / i_dst_height;
 
      /* Store calculated values */
-     id->p_encoder->fmt_out.video.i_width = i_dst_width;
-     id->p_encoder->fmt_out.video.i_height = i_dst_height;
+     id->p_encoder->fmt_out.video.i_width =
+     id->p_encoder->fmt_out.video.i_visible_width = i_dst_width;
+     id->p_encoder->fmt_out.video.i_height =
+     id->p_encoder->fmt_out.video.i_visible_height = i_dst_height;
+
+     id->p_encoder->fmt_in.video.i_width =
+     id->p_encoder->fmt_in.video.i_visible_width = i_dst_width;
+     id->p_encoder->fmt_in.video.i_height =
+     id->p_encoder->fmt_in.video.i_visible_height = i_dst_height;
 
      id->p_encoder->fmt_in.video.i_width = i_dst_width;
      id->p_encoder->fmt_in.video.i_height = i_dst_height;




More information about the vlc-devel mailing list