[MPlayer-cvslog] r35334 - trunk/libmpdemux/demux_ogg.c
reimar
subversion at mplayerhq.hu
Thu Nov 1 23:23:08 CET 2012
Author: reimar
Date: Thu Nov 1 23:23:07 2012
New Revision: 35334
Log:
Avoid potential overflow in shift.
Modified:
trunk/libmpdemux/demux_ogg.c
Modified: trunk/libmpdemux/demux_ogg.c
==============================================================================
--- trunk/libmpdemux/demux_ogg.c Thu Nov 1 23:22:04 2012 (r35333)
+++ trunk/libmpdemux/demux_ogg.c Thu Nov 1 23:23:07 2012 (r35334)
@@ -298,7 +298,7 @@ static unsigned char *demux_ogg_read_pac
have theora_state st, until all header packets were passed to the
decoder. */
if (!pack->bytes || !(*data&0x80)) {
- int64_t iframemask = (1 << os->keyframe_granule_shift) - 1;
+ int64_t iframemask = (1ull << os->keyframe_granule_shift) - 1;
if (pack->granulepos >= 0) {
os->lastpos = pack->granulepos >> os->keyframe_granule_shift;
More information about the MPlayer-cvslog
mailing list