# HG changeset patch # User rbultje # Date 1228588552 0 # Node ID 10f7232a3545f4f96a3d0c0a3322abe6fb525253 # Parent e1620316fe5cdd65b5c42c57a2600ea56d366e2e Do not access s->gb directly in functions that have a local copy of that variable. See "[PATCH] asf.c: don't access AVFormatContext->pb" thread on ML. diff -r e1620316fe5c -r 10f7232a3545 asf.c --- a/asf.c Fri Dec 05 14:59:41 2008 +0000 +++ b/asf.c Sat Dec 06 18:35:52 2008 +0000 @@ -567,7 +567,7 @@ int rsize = 8; int c, d, e, off; - off= (url_ftell(s->pb) - s->data_offset) % asf->packet_size + 3; + off= (url_ftell(pb) - s->data_offset) % asf->packet_size + 3; c=d=e=-1; while(off-- > 0){ @@ -723,7 +723,7 @@ /* fail safe */ url_fskip(pb, ret); - asf->packet_pos= url_ftell(s->pb); + asf->packet_pos= url_ftell(pb); if (asf->data_object_size != (uint64_t)-1 && (asf->packet_pos - asf->data_object_offset >= asf->data_object_size)) return AVERROR(EIO); /* Do not exceed the size of the data object */