diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-02-07 23:32:51 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-02-07 23:32:51 +0000 |
commit | ff5b8d83601b0c6fa1cc83fe224be10c95c7c4fc (patch) | |
tree | 59095582e0cb71fd369b610e197be7bd97650dc4 | |
parent | 51bd81f64d1c8c57aabc07e49816c5795edfd701 (diff) | |
download | ffmpeg-ff5b8d83601b0c6fa1cc83fe224be10c95c7c4fc.tar.gz |
remove senseless and wrong direct access to ByteIOContext internals
Originally committed as revision 7881 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/asf-enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/asf-enc.c b/libavformat/asf-enc.c index 13bf429f90..fe4df8ea0d 100644 --- a/libavformat/asf-enc.c +++ b/libavformat/asf-enc.c @@ -533,7 +533,7 @@ static int put_payload_parsing_info( 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 @@ static int put_payload_parsing_info( 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; } |