changeset 18468:3a624063cbc9

accidentally committed this overflow fix with the declaration fix before. messed up indention corrected at oded's request. :) 10^100l to me too..
author rfelker
date Sat, 13 May 2006 06:12:25 +0000
parents 1f956f8f881e
children 241102f92b13
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Sat May 13 05:56:40 2006 +0000
+++ b/libmpdemux/demux_ogg.c	Sat May 13 06:12:25 2006 +0000
@@ -665,7 +665,7 @@
       demux_ogg_read_packet(os,&op,context,&pts,&flags,samplesize);
       if(op.granulepos >= 0) ogg_d->final_granulepos = op.granulepos;
       if(index_mode == 2 && (flags || (os->vorbis && op.granulepos >= 0))) {
-        if (ogg_d->num_syncpoint > SIZE_MAX / sizeof(ogg_syncpoint_t) - 1) break;
+	if (ogg_d->num_syncpoint > SIZE_MAX / sizeof(ogg_syncpoint_t) - 1) break;
 	ogg_d->syncpoints = realloc_struct(ogg_d->syncpoints,(ogg_d->num_syncpoint+1), sizeof(ogg_syncpoint_t));
 	ogg_d->syncpoints[ogg_d->num_syncpoint].granulepos = op.granulepos;
 	ogg_d->syncpoints[ogg_d->num_syncpoint].page_pos = (ogg_page_continued(page) && p == 0) ? last_pos : pos;