[vlc-devel] [PATCH] avformat mux: use visible width/height for muxing
Jan Ekström
jeebjp at gmail.com
Thu Jun 25 00:54:19 CEST 2015
---
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 0dd24cd..2070fb3 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,
--
2.4.3
More information about the vlc-devel
mailing list