- swf->zbuf_in = av_malloc(ZBUF_SIZE);
- swf->zbuf_out = av_malloc(ZBUF_SIZE);
- swf->zpb = avio_alloc_context(swf->zbuf_out, ZBUF_SIZE, 0, s,
- zlib_refill, NULL, NULL);
- if (!swf->zbuf_in || !swf->zbuf_out || !swf->zpb)
- return AVERROR(ENOMEM);
- swf->zpb->seekable = 0;