]> git.sesse.net Git - vlc/commitdiff
Fixed h264 aspect ratio overflow.
authorLaurent Aimar <fenrir@videolan.org>
Thu, 21 Aug 2008 23:54:31 +0000 (01:54 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 21 Aug 2008 23:55:48 +0000 (01:55 +0200)
modules/packetizer/h264.c

index 78e354bff9add343eb739aa713dc667d90e1e0a1..c6b2255c4e024eb6af73dcc43801dff2207a881d 100644 (file)
@@ -886,8 +886,9 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag )
                 w = 0;
                 h = 0;
             }
+
             if( h != 0 )
-                p_dec->fmt_out.video.i_aspect = VOUT_ASPECT_FACTOR *
+                p_dec->fmt_out.video.i_aspect = (int64_t)VOUT_ASPECT_FACTOR *
                         ( w * p_dec->fmt_out.video.i_width ) /
                         ( h * p_dec->fmt_out.video.i_height);
             else