X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fzmbv.c;h=a68e42d789209a741a8ad17b3350a534351d2aca;hb=bd36ec55bef7c446079e192655d065fd86483876;hp=6f89c7e3ad81d31e50d58245ddab0ca7441d9cdb;hpb=7f83db312454b3673a4dfd34745428f61309ab30;p=ffmpeg diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c index 6f89c7e3ad8..a68e42d7892 100644 --- a/libavcodec/zmbv.c +++ b/libavcodec/zmbv.c @@ -618,7 +618,7 @@ static av_cold int decode_init(AVCodecContext *avctx) c->bpp = avctx->bits_per_coded_sample; // Needed if zlib unused or init aborted before inflateInit - memset(&(c->zstream), 0, sizeof(z_stream)); + memset(&c->zstream, 0, sizeof(z_stream)); avctx->pix_fmt = PIX_FMT_RGB24; c->decomp_size = (avctx->width + 255) * 4 * (avctx->height + 64); @@ -635,7 +635,7 @@ static av_cold int decode_init(AVCodecContext *avctx) c->zstream.zalloc = Z_NULL; c->zstream.zfree = Z_NULL; c->zstream.opaque = Z_NULL; - zret = inflateInit(&(c->zstream)); + zret = inflateInit(&c->zstream); if (zret != Z_OK) { av_log(avctx, AV_LOG_ERROR, "Inflate init error: %d\n", zret); return 1; @@ -659,7 +659,7 @@ static av_cold int decode_end(AVCodecContext *avctx) if (c->pic.data[0]) avctx->release_buffer(avctx, &c->pic); - inflateEnd(&(c->zstream)); + inflateEnd(&c->zstream); av_freep(&c->cur); av_freep(&c->prev);