[vlc-commits] Revert "swscale: fix aspect-ratio problem properly"
Ilkka Ollakka
git at videolan.org
Sun Dec 9 11:49:36 CET 2012
vlc/vlc-2.0 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Dec 9 12:47:14 2012 +0200| [8395f3344591e8a0f4d02925fab400571ffc60c4] | committer: Ilkka Ollakka
Revert "swscale: fix aspect-ratio problem properly"
These were wrong and reverter in upstream already
This reverts commit 48b8119ce865cb347b44b31b84a4aac7502e4a22.
This reverts commit ecbba65a009205196c21735eb104e3c4f5f490dc.
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=8395f3344591e8a0f4d02925fab400571ffc60c4
---
modules/video_filter/croppadd.c | 3 ---
modules/video_filter/swscale.c | 3 ---
2 files changed, 6 deletions(-)
diff --git a/modules/video_filter/croppadd.c b/modules/video_filter/croppadd.c
index 6381114..3072637 100644
--- a/modules/video_filter/croppadd.c
+++ b/modules/video_filter/croppadd.c
@@ -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_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;
}
diff --git a/modules/video_filter/swscale.c b/modules/video_filter/swscale.c
index 68eafa5..278dccf 100644
--- a/modules/video_filter/swscale.c
+++ b/modules/video_filter/swscale.c
@@ -208,9 +208,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_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;
}
More information about the vlc-commits
mailing list