[vlc-devel] commit: Revert "libmpeg2: Fix aspect ratio calculation according to MPEG standard." ( Marian Ďurkovič )
git version control
git at videolan.org
Wed Oct 21 11:34:49 CEST 2009
vlc | branch: 1.0-bugfix | Marian Ďurkovič <md at bts.sk> | Wed Oct 21 11:34:30 2009 +0200| [e9d6badb1dc308ef5db4c4362f595e5d9b389e49] | committer: Marian Ďurkovič
Revert "libmpeg2: Fix aspect ratio calculation according to MPEG standard."
Not suitable for 1.0.3
This reverts commit 8eb3caef7dd569e0a6f17c628bd28bdcbbbf792d.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e9d6badb1dc308ef5db4c4362f595e5d9b389e49
---
modules/codec/libmpeg2.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/libmpeg2.c b/modules/codec/libmpeg2.c
index 3bf8ef8..c55a243 100644
--- a/modules/codec/libmpeg2.c
+++ b/modules/codec/libmpeg2.c
@@ -713,10 +713,10 @@ static void GetAR( decoder_t *p_dec )
if( p_sys->p_info->sequence->pixel_height > 0 )
{
p_sys->i_aspect =
- ((uint64_t)p_sys->p_info->sequence->display_width) *
+ ((uint64_t)p_sys->p_info->sequence->picture_width) *
p_sys->p_info->sequence->pixel_width *
VOUT_ASPECT_FACTOR /
- p_sys->p_info->sequence->display_height /
+ p_sys->p_info->sequence->picture_height /
p_sys->p_info->sequence->pixel_height;
p_sys->i_sar_num = p_sys->p_info->sequence->pixel_width;
p_sys->i_sar_den = p_sys->p_info->sequence->pixel_height;
More information about the vlc-devel
mailing list