diff options
Diffstat (limited to 'libavcodec/zerocodec.c')
-rw-r--r-- | libavcodec/zerocodec.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/zerocodec.c b/libavcodec/zerocodec.c index 487cb32797..8fd8da645f 100644 --- a/libavcodec/zerocodec.c +++ b/libavcodec/zerocodec.c @@ -50,8 +50,8 @@ static int zerocodec_decode_frame(AVCodecContext *avctx, void *data, return AVERROR(EINVAL); } - zstream->next_in = avpkt->data; - zstream->avail_in = avpkt->size; + zstream->next_in = avpkt->data; + zstream->avail_in = avpkt->size; prev = prev_pic->data[0]; dst = pic->data[0]; @@ -76,7 +76,6 @@ static int zerocodec_decode_frame(AVCodecContext *avctx, void *data, for (i = 0; i < avctx->height; i++) { zstream->next_out = dst; zstream->avail_out = avctx->width << 1; - zret = inflate(zstream, Z_SYNC_FLUSH); if (zret != Z_OK && zret != Z_STREAM_END) { av_log(avctx, AV_LOG_ERROR, @@ -99,7 +98,7 @@ static int zerocodec_decode_frame(AVCodecContext *avctx, void *data, /* Store the previouse frame for use later */ *prev_pic = *pic; - *data_size = sizeof(AVFrame); + *data_size = sizeof(AVFrame); *(AVFrame *)data = *pic; return avpkt->size; |