]> git.sesse.net Git - vlc/blobdiff - modules/codec/ffmpeg/video.c
* include/video_output.h, ALL: changed api for vout_Request()/vout_Create() to be...
[vlc] / modules / codec / ffmpeg / video.c
index 146d61aa74f992345ae0f4e7085be33a165b9446..7813b7ad42d5b8af2c5ca3be8ab4049378a7bcad 100644 (file)
@@ -169,6 +169,8 @@ static inline picture_t *ffmpeg_NewPictBuf( decoder_t *p_dec,
         p_dec->fmt_out.video.i_aspect =
             VOUT_ASPECT_FACTOR * ( av_q2d(p_context->sample_aspect_ratio) *
                 p_context->width / p_context->height );
+       p_dec->fmt_out.video.i_sar_num = p_context->sample_aspect_ratio.num;
+       p_dec->fmt_out.video.i_sar_den = p_context->sample_aspect_ratio.den;
 #else
         p_dec->fmt_out.video.i_aspect =
             VOUT_ASPECT_FACTOR * p_context->aspect_ratio;