[libav-devel] [PATCH] Support AV1 encoding using libaom

Luca Barbato lu_zero at gentoo.org
Mon Mar 12 17:36:04 CET 2018


On 12/03/2018 14:00, Diego Biurrun wrote:
> On Mon, Mar 12, 2018 at 12:11:22PM +0100, Luca Barbato wrote:
>> --- /dev/null
>> +++ b/libavcodec/libaomenc.c
>> @@ -0,0 +1,583 @@
>> +    // provide dummy value to initialize wrapper, values will be updated each _encode()
>> +    aom_img_wrap(&ctx->rawimg, ff_aom_pixfmt_to_imgfmt(avctx->pix_fmt),
>> +                 avctx->width, avctx->height, 1, (unsigned char *)1);
> 
> What's with the strange cast?

What the comment says, a dummy value that gets updated with the correct 
values once the frame is available.

You might notice that the same code is in libvpxenc.

lu


More information about the libav-devel mailing list