Use PIX_FMT_NONE instead of -1 in AVCodec.pix_fmts.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sun, 12 Oct 2008 20:22:55 +0000 (20:22 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sun, 12 Oct 2008 20:22:55 +0000 (20:22 +0000)
Originally committed as revision 15604 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/libdiracenc.c

index b0de344..9c99b15 100644 (file)
@@ -417,6 +417,6 @@ AVCodec libdirac_encoder = {
     libdirac_encode_frame,
     libdirac_encode_close,
    .capabilities= CODEC_CAP_DELAY,
     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"),
 } ;
    .long_name= NULL_IF_CONFIG_SMALL("libdirac Dirac 2.2"),
 } ;