36 z_stream *zstream = &zc->
zstream;
56 zret = inflateReset(zstream);
65 zstream->next_in = avpkt->
data;
66 zstream->avail_in = avpkt->
size;
76 zstream->next_out = dst;
77 zstream->avail_out = avctx->
width << 1;
79 zret = inflate(zstream, Z_SYNC_FLUSH);
80 if (zret != Z_OK && zret != Z_STREAM_END) {
82 "Inflate failed with return code: %d.\n", zret);
87 for (j = 0; j < avctx->
width << 1; j++)
88 dst[j] += prev[j] & -!dst[j];
117 z_stream *zstream = &zc->
zstream;
123 zstream->zalloc = Z_NULL;
124 zstream->zfree = Z_NULL;
125 zstream->opaque = Z_NULL;
127 zret = inflateInit(zstream);