36 z_stream *zstream = &zc->
zstream;
56 zret = inflateReset(zstream);
67 zstream->next_in = avpkt->
data;
68 zstream->avail_in = avpkt->
size;
78 zstream->next_out = dst;
79 zstream->avail_out = avctx->
width << 1;
81 zret = inflate(zstream, Z_SYNC_FLUSH);
82 if (zret != Z_OK && zret != Z_STREAM_END) {
84 "Inflate failed with return code: %d.\n", zret);
89 for (j = 0; j < avctx->
width << 1; j++)
90 dst[j] += prev[j] & -!dst[j];
119 z_stream *zstream = &zc->
zstream;
125 zstream->zalloc = Z_NULL;
126 zstream->zfree = Z_NULL;
127 zstream->opaque = Z_NULL;
129 zret = inflateInit(zstream);