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 
+    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.

libav-devel mailing list

Reply via email to