changeset 343:538e6791f4c7 libavformat

fixing some seek failure issues
author michael
date Sat, 10 Jan 2004 22:36:35 +0000
parents 0c1b489c96bf
children a573dca492a3
files avidec.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/avidec.c	Thu Jan 08 19:01:16 2004 +0000
+++ b/avidec.c	Sat Jan 10 22:36:35 2004 +0000
@@ -496,7 +496,8 @@
     AVIContext *avi = s->priv_data;
     ByteIOContext *pb = &s->pb;
     uint32_t tag, size;
-
+    offset_t pos= url_ftell(pb);
+    
     url_fseek(pb, avi->movi_end, SEEK_SET);
 #ifdef DEBUG_SEEK
     printf("movi_end=0x%llx\n", avi->movi_end);
@@ -529,6 +530,7 @@
         }
     }
  the_end:
+    url_fseek(pb, pos, SEEK_SET);
     return 0;
 }