[vlc-devel] commit: mp4: fix sar_num calculation (Ilkka Ollakka )
git version control
git at videolan.org
Wed Dec 23 21:29:16 CET 2009
vlc | branch: master | Ilkka Ollakka <ileoo at iki.fi> | Wed Dec 23 22:13:54 2009 +0200| [2e74ee84b1f35d822fe1eaca6e2e081f0caa6d60] | committer: Ilkka Ollakka
mp4: fix sar_num calculation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e74ee84b1f35d822fe1eaca6e2e081f0caa6d60
---
modules/demux/mp4/mp4.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 05dbc12..c07bb1d 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -1554,7 +1554,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
/* Work-around buggy muxed files */
p_sample->data.p_sample_vide->i_width != p_track->i_width )
{
- p_track->fmt.video.i_sar_num = p_track->i_width / p_track->fmt.video.i_height;
+ p_track->fmt.video.i_sar_num = p_track->i_width * p_track->fmt.video.i_height;
p_track->fmt.video.i_sar_den = p_track->i_height * p_track->fmt.video.i_width;
}
More information about the vlc-devel
mailing list