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

Rémi Denis-Courmont remi at remlab.net
Thu Jun 25 11:10:40 CEST 2015


Le 2015-06-25 01:54, Jan Ekström a écrit :
> ---
>  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;

It is not clear to me whether avformat expects the coded dimensions or 
the picture dimensions here.

>          av_reduce( &codec->sample_aspect_ratio.num,
>                     &codec->sample_aspect_ratio.den,
>                     fmt->video.i_sar_num,

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list