[Ffmpeg-cvslog] r7881 - trunk/libavformat/asf-enc.c

michael subversion
Thu Feb 8 00:32:52 CET 2007


Author: michael
Date: Thu Feb  8 00:32:51 2007
New Revision: 7881

Modified:
   trunk/libavformat/asf-enc.c

Log:
remove senseless and wrong direct access to ByteIOContext internals


Modified: trunk/libavformat/asf-enc.c
==============================================================================
--- trunk/libavformat/asf-enc.c	(original)
+++ trunk/libavformat/asf-enc.c	Thu Feb  8 00:32:51 2007
@@ -533,7 +533,7 @@
     ASFContext *asf = s->priv_data;
     ByteIOContext *pb = &s->pb;
     int ppi_size, i;
-    unsigned char *start_ppi_ptr = pb->buf_ptr;
+    int64_t start= url_ftell(pb);
 
     int iLengthTypeFlags = ASF_PPI_LENGTH_TYPE_FLAGS;
 
@@ -565,7 +565,7 @@
     if (asf->multi_payloads_present)
         put_byte(pb, nb_payloads | ASF_PAYLOAD_FLAGS);
 
-    ppi_size = pb->buf_ptr - start_ppi_ptr;
+    ppi_size = url_ftell(pb) - start;
 
     return ppi_size;
 }




More information about the ffmpeg-cvslog mailing list