summaryrefslogtreecommitdiffstats
path: root/libmpdemux/mpeg_hdr.c
diff options
context:
space:
mode:
authorlorenm <lorenm@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-19 21:17:39 +0000
committerlorenm <lorenm@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-19 21:17:39 +0000
commitf3bf706a77be09cc37bd46967abdad286cd20eec (patch)
tree3e6a032f7ef5a3d0daa858d1fe5ad1a07feabada /libmpdemux/mpeg_hdr.c
parent643a40dc0118c9d534ef7c08b1af00f1d322caed (diff)
downloadmpv-f3bf706a77be09cc37bd46967abdad286cd20eec.tar.bz2
mpv-f3bf706a77be09cc37bd46967abdad286cd20eec.tar.xz
integer overflow when reading fps from h264 vui.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15218 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/mpeg_hdr.c')
-rw-r--r--libmpdemux/mpeg_hdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/mpeg_hdr.c b/libmpdemux/mpeg_hdr.c
index c8867d4ea0..31d1c5207a 100644
--- a/libmpdemux/mpeg_hdr.c
+++ b/libmpdemux/mpeg_hdr.c
@@ -286,7 +286,7 @@ static int h264_parse_vui(mp_mpeg_header_t * picture, unsigned char * buf, unsig
fixed_fps = getbits(buf, n, 1);
if(picture->timeinc_unit > 0 && picture->timeinc_resolution > 0)
- picture->fps = (picture->timeinc_resolution * 10000) / picture->timeinc_unit;
+ picture->fps = ((uint64_t)picture->timeinc_resolution * 10000) / picture->timeinc_unit;
}
//fprintf(stderr, "H264_PARSE_VUI, OVESCAN=%u, VSP_COLOR=%u, CHROMA=%u, TIMING=%u, DISPW=%u, DISPH=%u, TIMERES=%u, TIMEINC=%u, FIXED_FPS=%u\n", overscan, vsp_color, chroma, timing, picture->display_picture_width, picture->display_picture_height,