On Wed, Aug 24, 2016 at 1:59 PM, Luca Barbato <[email protected]> wrote:
> On 24/08/16 18:28, Diego Biurrun wrote:
>> libavcodec/libvpxdec.c:100:57: warning: passing argument 3 of 
>> 'av_image_copy' from incompatible pointer type
>>          av_image_copy(picture->data, picture->linesize, img->planes,
>> libavutil/imgutils.h:116:6: note: expected 'const uint8_t **' but argument 
>> is of type 'unsigned char **'
>>  void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
>> ---
>>  libavcodec/libvpxdec.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c
>> index 43484ef..ce4714a 100644
>> --- a/libavcodec/libvpxdec.c
>> +++ b/libavcodec/libvpxdec.c
>> @@ -97,7 +97,7 @@ static int vp8_decode(AVCodecContext *avctx,
>>          }
>>          if ((ret = ff_get_buffer(avctx, picture, 0)) < 0)
>>              return ret;
>> -        av_image_copy(picture->data, picture->linesize, img->planes,
>> +        av_image_copy(picture->data, picture->linesize, (const uint8_t **) 
>> img->planes,

nit: no space after )
-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to