Commit b8f04c94 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Revert "swscale: pass/calculate sar-info, should fix #7437"

This reverts commit 0330378c.
This reverts commit 0f233f49.

Init() already initializes the aspect ratio, and does it correctly
(unlike these two commits) with video_format_ScaleCropAr().
parent 807a6c9a
...@@ -190,9 +190,6 @@ static int OpenFilter( vlc_object_t *p_this ) ...@@ -190,9 +190,6 @@ static int OpenFilter( vlc_object_t *p_this )
p_filter->fmt_out.video.i_width, p_filter->fmt_out.video.i_width,
p_filter->fmt_out.video.i_height ); p_filter->fmt_out.video.i_height );
p_filter->fmt_out.video.i_sar_num = p_filter->fmt_in.video.i_sar_num * p_filter->fmt_out.video.i_visible_height;
p_filter->fmt_out.video.i_sar_den = p_filter->fmt_in.video.i_sar_den * p_filter->fmt_out.video.i_visible_width;
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
...@@ -207,9 +207,6 @@ static int OpenScaler( vlc_object_t *p_this ) ...@@ -207,9 +207,6 @@ static int OpenScaler( vlc_object_t *p_this )
(char *)&p_filter->fmt_out.video.i_chroma, (char *)&p_filter->fmt_out.video.i_chroma,
ppsz_mode_descriptions[i_sws_mode] ); 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_in.video.i_width / p_filter->fmt_out.video.i_width;
p_filter->fmt_out.video.i_sar_den = p_filter->fmt_in.video.i_sar_den * p_filter->fmt_in.video.i_height / p_filter->fmt_out.video.i_height;
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
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