Commit 4520d345 authored by cehoyos's avatar cehoyos

Initialize s->opaque before calling url_resetbuf().

Fixes a regression test crash for icc 10.1 64 bit.

Patch by Aurelien.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16271 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a1b41e78
......@@ -40,8 +40,8 @@ int init_put_byte(ByteIOContext *s,
s->buffer = buffer;
s->buffer_size = buffer_size;
s->buf_ptr = buffer;
url_resetbuf(s, write_flag ? URL_WRONLY : URL_RDONLY);
s->opaque = opaque;
url_resetbuf(s, write_flag ? URL_WRONLY : URL_RDONLY);
s->write_packet = write_packet;
s->read_packet = read_packet;
s->seek = seek;
......
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