]> git.sesse.net Git - vlc/commitdiff
Revert "demux: mp4: fix fallback on PAR"
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 26 Mar 2014 18:14:23 +0000 (19:14 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 26 Mar 2014 18:15:15 +0000 (19:15 +0100)
This reverts commit bcf7989613b3bb888e5a9941ffe3310539347586.

According to some other samples, doesn't sound like a correct fix.

modules/demux/mp4/mp4.c

index 9e2abd7174d601341260dcbc052b4ff95da3f2e2..c3038f4f37661ef3f8512406113ce971513b8acb 100644 (file)
@@ -1773,15 +1773,8 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
         if( p_pasp && p_pasp->data.p_pasp->i_horizontal_spacing > 0 &&
                       p_pasp->data.p_pasp->i_vertical_spacing > 0 )
         {
-            /* Convert pixel ratio to picture/display aspect ratio */
-            /* SAR * PAR -> DAR */
-            vlc_ureduce( &p_track->fmt.video.i_sar_num, &p_track->fmt.video.i_sar_den,
-                         (uint64_t) p_pasp->data.p_pasp->i_horizontal_spacing
-                                    * p_track->fmt.video.i_width,
-                         (uint64_t) p_pasp->data.p_pasp->i_vertical_spacing
-                                    * p_track->fmt.video.i_height,
-                         UINT32_MAX
-                         );
+            p_track->fmt.video.i_sar_num = p_pasp->data.p_pasp->i_horizontal_spacing;
+            p_track->fmt.video.i_sar_den = p_pasp->data.p_pasp->i_vertical_spacing;
         }
 
         /* Support for cropping (eg. in H263 files) */