[FFmpeg-devel] [PATCH v1 1/4] avcodec/lcldec: remove the unnecessary type conversion

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Sep 12 13:55:09 EEST 2019


Am Do., 12. Sept. 2019 um 11:24 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/lcldec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
> index 046cdc4f8e..1154221f8f 100644
> --- a/libavcodec/lcldec.c
> +++ b/libavcodec/lcldec.c
> @@ -136,7 +136,7 @@ static int zlib_decomp(AVCodecContext *avctx, const uint8_t *src, int src_len, i
>          av_log(avctx, AV_LOG_ERROR, "Inflate reset error: %d\n", zret);
>          return AVERROR_UNKNOWN;
>      }
> -    c->zstream.next_in = (uint8_t *)src;
> +    c->zstream.next_in = src;

I prefer this patchset, others may disagree.

Thank you, Carl Eugen


More information about the ffmpeg-devel mailing list