36 z_stream *zstream = &zc->
zstream;
58 zret = inflateReset(zstream);
69 zstream->next_in = avpkt->
data;
70 zstream->avail_in = avpkt->
size;
80 zstream->next_out =
dst;
81 zstream->avail_out = avctx->
width << 1;
83 zret = inflate(zstream, Z_SYNC_FLUSH);
84 if (zret != Z_OK && zret != Z_STREAM_END) {
87 "Inflate failed with return code: %d.\n", zret);
92 for (j = 0; j < avctx->
width << 1; j++)
93 dst[j] += prev[j] & -!dst[j];
100 if (prev_pic->
data[0])
121 if (prev_pic->
data[0])
132 z_stream *zstream = &zc->
zstream;
138 zstream->zalloc = Z_NULL;
139 zstream->zfree = Z_NULL;
140 zstream->opaque = Z_NULL;
142 zret = inflateInit(zstream);