changeset 12265:c9e1fe032d10

1000000000000l to bunkus
author rfelker
date Fri, 23 Apr 2004 22:30:18 +0000
parents 070cc45bef28
children 096072d234c6
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Fri Apr 23 16:36:33 2004 +0000
+++ b/libmpdemux/demux_ogg.c	Fri Apr 23 22:30:18 2004 +0000
@@ -1176,6 +1176,10 @@
   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 @@
       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 @@
         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--;