Commit 25987fd3 authored by Jan Ekström's avatar Jan Ekström Committed by Jean-Baptiste Kempf

avformat mux: use visible width/height for muxing

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5c253d54
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment