mirror of https://git.ffmpeg.org/ffmpeg.git
Initialize s->opaque before calling url_resetbuf().
Fixes a regression test crash for icc 10.1 64 bit. Patch by Aurelien. Originally committed as revision 16271 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a6493a8fbd
commit
9daa4ceaa3
|
@ -40,8 +40,8 @@ int init_put_byte(ByteIOContext *s,
|
||||||
s->buffer = buffer;
|
s->buffer = buffer;
|
||||||
s->buffer_size = buffer_size;
|
s->buffer_size = buffer_size;
|
||||||
s->buf_ptr = buffer;
|
s->buf_ptr = buffer;
|
||||||
url_resetbuf(s, write_flag ? URL_WRONLY : URL_RDONLY);
|
|
||||||
s->opaque = opaque;
|
s->opaque = opaque;
|
||||||
|
url_resetbuf(s, write_flag ? URL_WRONLY : URL_RDONLY);
|
||||||
s->write_packet = write_packet;
|
s->write_packet = write_packet;
|
||||||
s->read_packet = read_packet;
|
s->read_packet = read_packet;
|
||||||
s->seek = seek;
|
s->seek = seek;
|
||||||
|
|
Loading…
Reference in New Issue