diff libdiracenc.c @ 8021:00fca5d6f0d9 libavcodec

Use PIX_FMT_NONE instead of -1 in AVCodec.pix_fmts.
author cehoyos
date Sun, 12 Oct 2008 20:22:55 +0000
parents e6348a5656e0
children e9d9d946f213
line wrap: on
line diff
--- 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"),
 } ;