# HG changeset patch # User cehoyos # Date 1229944980 0 # Node ID 6afa3d7c206e46a8197226ab1e402d84813b18c2 # Parent bfc790ab375f8ffc17a8b32c7604b3d428f44985 Initialize s->opaque before calling url_resetbuf(). Fixes a regression test crash for icc 10.1 64 bit. Patch by Aurelien. diff -r bfc790ab375f -r 6afa3d7c206e aviobuf.c --- a/aviobuf.c Sun Dec 21 23:50:16 2008 +0000 +++ b/aviobuf.c Mon Dec 22 11:23:00 2008 +0000 @@ -40,8 +40,8 @@ s->buffer = buffer; s->buffer_size = buffer_size; s->buf_ptr = buffer; + s->opaque = opaque; url_resetbuf(s, write_flag ? URL_WRONLY : URL_RDONLY); - s->opaque = opaque; s->write_packet = write_packet; s->read_packet = read_packet; s->seek = seek;