Commit 48b8119c authored by Ilkka Ollakka's avatar Ilkka Ollakka

swscale: fix aspect-ratio problem properly

works with transform filter now too, fixes #7437 again.
(cherry picked from commit 0330378c55b8b940f6de82adb59cc32c5b3da12a)
parent 9ccecb62
...@@ -208,8 +208,8 @@ static int OpenScaler( vlc_object_t *p_this ) ...@@ -208,8 +208,8 @@ 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_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_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