Commit 2e74ee84 authored by Ilkka Ollakka's avatar Ilkka Ollakka

mp4: fix sar_num calculation

parent baced9d2
...@@ -1554,7 +1554,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track, ...@@ -1554,7 +1554,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
/* Work-around buggy muxed files */ /* Work-around buggy muxed files */
p_sample->data.p_sample_vide->i_width != p_track->i_width ) 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; p_track->fmt.video.i_sar_den = p_track->i_height * p_track->fmt.video.i_width;
} }
......
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