Hi Lorenzo,

I can't make:

int size = avpicture_get_size(avctx->fmt, avctx->width, avctx->height);
tempFrame = av_malloc(size*sizeof(uint8_t));

because the compiler say " Impossible conversion from 'void *' to
'AVFrame *'  " at av_malloc function

looks like an explicit type cast might help:
tempFrame = (AVFrame *)av_malloc(size*sizeof(uint8_t));

Thomas
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to