On 23/10/15 18:35, Vittorio Giovara wrote:
> From: Michael Niedermayer <[email protected]>
> 
> Silence gcc warning
> 'libavcodec/nuv.c:81:19: warning: passing argument 3 of
>     av_image_copy from incompatible pointer type'
> 
> Signed-off-by: Vittorio Giovara <[email protected]>
> ---
>  libavcodec/nuv.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c
> index 9db85fd..3f65594 100644
> --- a/libavcodec/nuv.c
> +++ b/libavcodec/nuv.c
> @@ -78,7 +78,8 @@ static void copy_frame(AVFrame *f, const uint8_t *src, int 
> width, int height)
>      int src_linesize[4];
>      av_image_fill_arrays(src_data, src_linesize, src,
>                           f->format, width, height, 1);
> -    av_image_copy(f->data, f->linesize, src_data, src_linesize,
> +    av_image_copy(f->data, f->linesize,
> +                  (const uint8_t **)src_data, src_linesize,
>                    f->format, width, height);
>  }
>  
> 

Depending on the compiler the cast might get ignored I'm afraid.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to