[FFmpeg-devel] [PATCH v1] avcodec/tscc: fix the warning: assigning to 'Bytef *' (aka 'unsigned char *') from 'const uint8_t *

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Sep 4 21:06:39 EEST 2019


Am Mi., 4. Sept. 2019 um 16:47 Uhr schrieb <lance.lmwang at gmail.com>:
>
> 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..f3b959c 100644
> --- a/libavcodec/tscc.c
> +++ b/libavcodec/tscc.c
> @@ -64,7 +64,7 @@ typedef struct TsccContext {
>  static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
>                          AVPacket *avpkt)
>  {
> -    const uint8_t *buf = avpkt->data;
> +    uint8_t *buf = avpkt->data;

How can I reproduce the warning?

Carl Eugen


More information about the ffmpeg-devel mailing list