Mercurial > libavformat.hg
changeset 4127:6afa3d7c206e libavformat
Initialize s->opaque before calling url_resetbuf().
Fixes a regression test crash for icc 10.1 64 bit.
Patch by Aurelien.
author | cehoyos |
---|---|
date | Mon, 22 Dec 2008 11:23:00 +0000 |
parents | bfc790ab375f |
children | e51ace85da6c |
files | aviobuf.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;