diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-12-22 11:23:00 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2008-12-22 11:23:00 +0000 |
commit | 9daa4ceaa3661bc7f994d2864e5599934e9282ce (patch) | |
tree | 1749c84a05581d216e4738f98bc63cd1d425672e /libavformat/aviobuf.c | |
parent | a6493a8fbd979eb96898d910b8a64df7c5eee6a5 (diff) | |
download | ffmpeg-9daa4ceaa3661bc7f994d2864e5599934e9282ce.tar.gz |
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
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index b680c1dfbc..d1dc09ba0f 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -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; |