[FFmpeg-devel] [PATCH v2] avcodec/tscc: fix the warning: assigning to 'Bytef *' (aka 'unsigned char *') from 'const uint8_t *
Limin Wang
lance.lmwang at gmail.com
Tue Sep 10 17:19:45 EEST 2019
On Thu, Sep 05, 2019 at 06:44:55AM +0800, lance.lmwang at gmail.com wrote:
ping
> From: Limin Wang <lance.lmwang at gmail.com>
>
> Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
> ---
> libavcodec/tscc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c
> index 6d03081..b0dbef4 100644
> --- a/libavcodec/tscc.c
> +++ b/libavcodec/tscc.c
> @@ -88,7 +88,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
> av_log(avctx, AV_LOG_ERROR, "Inflate reset error: %d\n", ret);
> return AVERROR_UNKNOWN;
> }
> - c->zstream.next_in = buf;
> + c->zstream.next_in = (uint8_t*)buf;
> c->zstream.avail_in = buf_size;
> c->zstream.next_out = c->decomp_buf;
> c->zstream.avail_out = c->decomp_size;
> --
> 2.6.4
>
More information about the ffmpeg-devel
mailing list