]> git.sesse.net Git - vlc/blobdiff - modules/codec/dirac.c
Fix make dist
[vlc] / modules / codec / dirac.c
index f24dd18b0e3ee9a6a1fe5f87d8f9ca53e9135a25..50b29e8b715cc7bc5a66e9c162f39b5746d55f9c 100644 (file)
@@ -506,9 +506,8 @@ static int OpenEncoder( vlc_object_t *p_this )
     p_sys->ctx.src_params.frame_rate.denominator = p_enc->fmt_in.video.i_frame_rate_base;
     unsigned u_asr_num, u_asr_den;
     vlc_ureduce( &u_asr_num, &u_asr_den,
-                 p_enc->fmt_in.video.i_height * p_enc->fmt_in.video.i_aspect,
-                 p_enc->fmt_in.video.i_width * VOUT_ASPECT_FACTOR,
-                 0 );
+                 p_enc->fmt_in.video.i_sar_num,
+                 p_enc->fmt_in.video.i_sar_den, 0 );
     p_sys->ctx.src_params.pix_asr.numerator = u_asr_num;
     p_sys->ctx.src_params.pix_asr.denominator = u_asr_den;