Commit c62fb0d0 authored by michael's avatar michael

remove senseless and wrong direct access to ByteIOContext internals


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7881 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 937b3f0f
...@@ -533,7 +533,7 @@ static int put_payload_parsing_info( ...@@ -533,7 +533,7 @@ static int put_payload_parsing_info(
ASFContext *asf = s->priv_data; ASFContext *asf = s->priv_data;
ByteIOContext *pb = &s->pb; ByteIOContext *pb = &s->pb;
int ppi_size, i; 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; int iLengthTypeFlags = ASF_PPI_LENGTH_TYPE_FLAGS;
...@@ -565,7 +565,7 @@ static int put_payload_parsing_info( ...@@ -565,7 +565,7 @@ static int put_payload_parsing_info(
if (asf->multi_payloads_present) if (asf->multi_payloads_present)
put_byte(pb, nb_payloads | ASF_PAYLOAD_FLAGS); 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; return ppi_size;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment