]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/swscale.c
vlc.desktop: add missing --started-from-file option (fixes #8839)
[vlc] / modules / video_filter / swscale.c
index 7b3d7915f2cb942c504cf1edf9c0b82eeaf941b0..91562ceca707b77dc95d84807d133e01bf63b3ef 100644 (file)
@@ -207,9 +207,6 @@ static int OpenScaler( vlc_object_t *p_this )
              (char *)&p_filter->fmt_out.video.i_chroma,
              ppsz_mode_descriptions[i_sws_mode] );
 
-    p_filter->fmt_out.video.i_sar_num = p_filter->fmt_in.video.i_sar_num;
-    p_filter->fmt_out.video.i_sar_den = p_filter->fmt_in.video.i_sar_den;
-
     return VLC_SUCCESS;
 }
 
@@ -296,8 +293,8 @@ static int GetParameters( ScalerConfiguration *p_cfg,
     bool b_swap_uvi = false;
     bool b_swap_uvo = false;
 
-    GetFfmpegChroma( &i_fmti, *p_fmti );
-    GetFfmpegChroma( &i_fmto, *p_fmto );
+    GetFfmpegChroma( &i_fmti, p_fmti );
+    GetFfmpegChroma( &i_fmto, p_fmto );
 
     if( p_fmti->i_chroma == p_fmto->i_chroma )
     {