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
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to