Message ID | 20190912092342.16465-4-lance.lmwang@gmail.com |
---|---|
State | Accepted |
Commit | 607b85f07e6596a4f1e56bbd5717522b41737547 |
Headers | show |
diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c index 99e735cfd9..ace13e2ada 100644 --- a/libavcodec/zmbv.c +++ b/libavcodec/zmbv.c @@ -542,7 +542,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac c->decomp_len = len; } else { // ZLIB-compressed data c->zstream.total_in = c->zstream.total_out = 0; - c->zstream.next_in = (uint8_t*)buf; + c->zstream.next_in = buf; c->zstream.avail_in = len; c->zstream.next_out = c->decomp_buf; c->zstream.avail_out = c->decomp_size;