mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 21:31:13 +00:00
accidentally committed this overflow fix with the declaration fix before.
messed up indention corrected at oded's request. :) 10^100l to me too.. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18469 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fe2cc4dc15
commit
2539dc0417
@ -665,7 +665,7 @@ void demux_ogg_scan_stream(demuxer_t* demuxer) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user