[vlc-commits] avformat mux: use visible width/height for muxing

Jan Ekström git at videolan.org
Wed Oct 21 17:43:41 CEST 2015


vlc/vlc-2.2 | branch: master | Jan Ekström <jeebjp at gmail.com> | Thu Jun 25 01:54:19 2015 +0300| [4a6d40655336027aa0c84adf6ea9540ddaf7e8f6] | committer: Jean-Baptiste Kempf

avformat mux: use visible width/height for muxing

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 25987fd3bb07323b8ce6a31626413f8a42b6b479)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/demux/avformat/mux.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index 2974a6d..9b2d98c 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -248,8 +248,8 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
                     (double)fmt->video.i_frame_rate/(double)fmt->video.i_frame_rate_base );
 
         codec->codec_type = AVMEDIA_TYPE_VIDEO;
-        codec->width = fmt->video.i_width;
-        codec->height = fmt->video.i_height;
+        codec->width = fmt->video.i_visible_width;
+        codec->height = fmt->video.i_visible_height;
         av_reduce( &codec->sample_aspect_ratio.num,
                    &codec->sample_aspect_ratio.den,
                    fmt->video.i_sar_num,



More information about the vlc-commits mailing list