aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-23 22:30:18 +0000
committerGravatar rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-23 22:30:18 +0000
commitebfa9397279dff0f73686eba0f48c9fd9c0c6e9b (patch)
treeafabf30096f9b3411c5e852e0b32b2b7859b7766
parent3d2d5a763f4d313c9347d6f32847480597aed488 (diff)
1000000000000l to bunkus
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12266 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpdemux/demux_ogg.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c
index 7700bcb839..84d319071a 100644
--- a/libmpdemux/demux_ogg.c
+++ b/libmpdemux/demux_ogg.c
@@ -1176,6 +1176,10 @@ void demux_ogg_seek(demuxer_t *demuxer,float rel_seek_secs,int flags) {
int64_t gp = 0, old_gp;
void *context = NULL;
off_t pos, old_pos;
+ int np;
+ int is_gp_valid;
+ float pts;
+ int is_keyframe;
if(demuxer->video->id >= 0) {
ds = demuxer->video;
@@ -1255,7 +1259,6 @@ void demux_ogg_seek(demuxer_t *demuxer,float rel_seek_secs,int flags) {
first = !(ogg_d->syncpoints);
do_seek=0;
}
- int np;
ogg_d->pos += ogg_d->last_size;
ogg_d->last_size = 0;
np = ogg_sync_pageseek(sync,page);
@@ -1291,9 +1294,7 @@ void demux_ogg_seek(demuxer_t *demuxer,float rel_seek_secs,int flags) {
first = 0;
break;
}
- int is_gp_valid = (op.granulepos >= 0);
- float pts;
- int is_keyframe;
+ is_gp_valid = (op.granulepos >= 0);
demux_ogg_read_packet(os,&op,context,&pts,&is_keyframe);
if (precision && is_gp_valid) {
precision--;