# HG changeset patch # User cehoyos # Date 1223842975 0 # Node ID 00fca5d6f0d96245263dc8edeaf18ed22327ee74 # Parent 28d9f91aeb2854d97df81ed4d1fbda942b702c1c Use PIX_FMT_NONE instead of -1 in AVCodec.pix_fmts. diff -r 28d9f91aeb28 -r 00fca5d6f0d9 libdiracenc.c --- a/libdiracenc.c Sun Oct 12 19:41:17 2008 +0000 +++ b/libdiracenc.c Sun Oct 12 20:22:55 2008 +0000 @@ -417,6 +417,6 @@ libdirac_encode_frame, libdirac_encode_close, .capabilities= CODEC_CAP_DELAY, - .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, -1}, + .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE}, .long_name= NULL_IF_CONFIG_SMALL("libdirac Dirac 2.2"), } ;