summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2008-05-11 22:28:43 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2008-05-11 22:28:43 +0000
commiteacced45c47222efebcf66bfced9375a16490e07 (patch)
tree6955e28d81e19ae992f6be7812d05714e80456eb
parent488aca9b1e2eb9136b77e00335b2f529cbb248d2 (diff)
downloadffmpeg-eacced45c47222efebcf66bfced9375a16490e07.tar.gz
Replace some occurrences of -1 with PIX_FMT_NONE.
Fixes icc warning #188: enumerated type mixed with another type Originally committed as revision 13130 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/8bps.c2
-rw-r--r--libavcodec/asv1.c4
-rw-r--r--libavcodec/bmpenc.c2
-rw-r--r--libavcodec/dv.c2
-rw-r--r--libavcodec/ffv1.c2
-rw-r--r--libavcodec/flashsv.c2
-rw-r--r--libavcodec/flashsvenc.c2
-rw-r--r--libavcodec/gif.c2
-rw-r--r--libavcodec/h261enc.c2
-rw-r--r--libavcodec/huffyuv.c4
-rw-r--r--libavcodec/jpeglsenc.c2
-rw-r--r--libavcodec/libschroedingerenc.c2
-rw-r--r--libavcodec/libtheoraenc.c2
-rw-r--r--libavcodec/libx264.c2
-rw-r--r--libavcodec/libxvidff.c2
-rw-r--r--libavcodec/mjpegenc.c2
-rw-r--r--libavcodec/mpeg12.c8
-rw-r--r--libavcodec/mpeg12enc.c4
-rw-r--r--libavcodec/mpegvideo_enc.c20
-rw-r--r--libavcodec/pngenc.c2
-rw-r--r--libavcodec/pnmenc.c10
-rw-r--r--libavcodec/qtrleenc.c2
-rw-r--r--libavcodec/roqvideoenc.c2
-rw-r--r--libavcodec/sgienc.c2
-rw-r--r--libavcodec/svq1dec.c2
-rw-r--r--libavcodec/svq1enc.c2
-rw-r--r--libavcodec/targaenc.c2
-rw-r--r--libavcodec/tiffenc.c2
-rw-r--r--libavcodec/wmv2enc.c2
-rw-r--r--libavcodec/zmbvenc.c2
-rw-r--r--libavdevice/v4l2.c2
31 files changed, 50 insertions, 50 deletions
diff --git a/libavcodec/8bps.c b/libavcodec/8bps.c
index dc63dae58f..b5be9ae2ac 100644
--- a/libavcodec/8bps.c
+++ b/libavcodec/8bps.c
@@ -37,7 +37,7 @@
#include "avcodec.h"
-static const enum PixelFormat pixfmt_rgb24[] = {PIX_FMT_BGR24, PIX_FMT_RGB32, -1};
+static const enum PixelFormat pixfmt_rgb24[] = {PIX_FMT_BGR24, PIX_FMT_RGB32, PIX_FMT_NONE};
/*
* Decoder context
diff --git a/libavcodec/asv1.c b/libavcodec/asv1.c
index 0d7188e7fa..0e80a610e4 100644
--- a/libavcodec/asv1.c
+++ b/libavcodec/asv1.c
@@ -639,7 +639,7 @@ AVCodec asv1_encoder = {
encode_init,
encode_frame,
//encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "ASUS V1",
};
@@ -651,7 +651,7 @@ AVCodec asv2_encoder = {
encode_init,
encode_frame,
//encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "ASUS V2",
};
diff --git a/libavcodec/bmpenc.c b/libavcodec/bmpenc.c
index 437b62d840..0cee7c61ab 100644
--- a/libavcodec/bmpenc.c
+++ b/libavcodec/bmpenc.c
@@ -94,6 +94,6 @@ AVCodec bmp_encoder = {
bmp_encode_init,
bmp_encode_frame,
NULL, //encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_BGR24, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
.long_name = "BMP image",
};
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 60371136f2..71602f5f2c 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -1239,7 +1239,7 @@ AVCodec dvvideo_encoder = {
sizeof(DVVideoContext),
dvvideo_init,
dvvideo_encode_frame,
- .pix_fmts = (enum PixelFormat[]) {PIX_FMT_YUV411P, PIX_FMT_YUV422P, PIX_FMT_YUV420P, -1},
+ .pix_fmts = (enum PixelFormat[]) {PIX_FMT_YUV411P, PIX_FMT_YUV422P, PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name = "DV (Digital Video)",
};
#endif // CONFIG_DVVIDEO_ENCODER
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 80138b5d1e..23adf287c6 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -1035,7 +1035,7 @@ AVCodec ffv1_encoder = {
encode_init,
encode_frame,
common_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV444P, PIX_FMT_YUV422P, PIX_FMT_YUV411P, PIX_FMT_YUV410P, PIX_FMT_RGB32, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV444P, PIX_FMT_YUV422P, PIX_FMT_YUV411P, PIX_FMT_YUV410P, PIX_FMT_RGB32, PIX_FMT_NONE},
.long_name= "FFmpeg codec #1",
};
#endif
diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c
index 37a7f19782..fc87b6a301 100644
--- a/libavcodec/flashsv.c
+++ b/libavcodec/flashsv.c
@@ -254,6 +254,6 @@ AVCodec flashsv_decoder = {
flashsv_decode_end,
flashsv_decode_frame,
CODEC_CAP_DR1,
- .pix_fmts = (enum PixelFormat[]){PIX_FMT_BGR24, -1},
+ .pix_fmts = (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
.long_name = "Flash Screen Video v1",
};
diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c
index 97e0abd265..2a95ffb45b 100644
--- a/libavcodec/flashsvenc.c
+++ b/libavcodec/flashsvenc.c
@@ -292,7 +292,7 @@ AVCodec flashsv_encoder = {
flashsv_encode_init,
flashsv_encode_frame,
flashsv_encode_end,
- .pix_fmts = (enum PixelFormat[]){PIX_FMT_BGR24, -1},
+ .pix_fmts = (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
.long_name = "Flash Screen Video",
};
diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index d172593dbc..7dd248e64c 100644
--- a/libavcodec/gif.c
+++ b/libavcodec/gif.c
@@ -340,6 +340,6 @@ AVCodec gif_encoder = {
gif_encode_init,
gif_encode_frame,
NULL, //encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_PAL8, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_PAL8, PIX_FMT_NONE},
.long_name= "GIF (Graphics Interchange Format)",
};
diff --git a/libavcodec/h261enc.c b/libavcodec/h261enc.c
index f8e3b72233..783d5dc09b 100644
--- a/libavcodec/h261enc.c
+++ b/libavcodec/h261enc.c
@@ -329,7 +329,7 @@ AVCodec h261_encoder = {
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "H.261",
};
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c
index a9a054701a..3c570874dc 100644
--- a/libavcodec/huffyuv.c
+++ b/libavcodec/huffyuv.c
@@ -1473,7 +1473,7 @@ AVCodec huffyuv_encoder = {
encode_init,
encode_frame,
encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV422P, PIX_FMT_RGB32, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV422P, PIX_FMT_RGB32, PIX_FMT_NONE},
.long_name = "Huffyuv / HuffYUV",
};
@@ -1485,7 +1485,7 @@ AVCodec ffvhuff_encoder = {
encode_init,
encode_frame,
encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_RGB32, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_RGB32, PIX_FMT_NONE},
.long_name = "Huffyuv FFmpeg variant",
};
diff --git a/libavcodec/jpeglsenc.c b/libavcodec/jpeglsenc.c
index bdfa287c0e..c3c693a087 100644
--- a/libavcodec/jpeglsenc.c
+++ b/libavcodec/jpeglsenc.c
@@ -389,6 +389,6 @@ AVCodec jpegls_encoder = { //FIXME avoid MPV_* lossless JPEG should not need the
encode_init_ls,
encode_picture_ls,
NULL,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB24, PIX_FMT_GRAY8, PIX_FMT_GRAY16, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB24, PIX_FMT_GRAY8, PIX_FMT_GRAY16, PIX_FMT_NONE},
.long_name= "JPEG-LS",
};
diff --git a/libavcodec/libschroedingerenc.c b/libavcodec/libschroedingerenc.c
index b9d5bc7aff..516b881113 100644
--- a/libavcodec/libschroedingerenc.c
+++ b/libavcodec/libschroedingerenc.c
@@ -383,5 +383,5 @@ AVCodec libschroedinger_encoder = {
libschroedinger_encode_frame,
libschroedinger_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},
};
diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c
index b08b387a74..d516d443e3 100644
--- a/libavcodec/libtheoraenc.c
+++ b/libavcodec/libtheoraenc.c
@@ -264,7 +264,7 @@ static int encode_close(AVCodecContext* avc_context)
return -1;
}
-static const enum PixelFormat supported_pixel_formats[] = { PIX_FMT_YUV420P, -1 };
+static const enum PixelFormat supported_pixel_formats[] = { PIX_FMT_YUV420P, PIX_FMT_NONE };
/*! AVCodec struct exposed to libavcodec */
AVCodec libtheora_encoder =
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 2e3a88ebd9..f82083a6c4 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -296,6 +296,6 @@ AVCodec libx264_encoder = {
.encode = X264_frame,
.close = X264_close,
.capabilities = CODEC_CAP_DELAY,
- .pix_fmts = (enum PixelFormat[]) { PIX_FMT_YUV420P, -1 },
+ .pix_fmts = (enum PixelFormat[]) { PIX_FMT_YUV420P, PIX_FMT_NONE },
.long_name = "libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
};
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c
index a97e0da5eb..0f4eaf4c61 100644
--- a/libavcodec/libxvidff.c
+++ b/libavcodec/libxvidff.c
@@ -773,6 +773,6 @@ AVCodec libxvid_encoder = {
ff_xvid_encode_init,
ff_xvid_encode_frame,
ff_xvid_encode_close,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "libxvidcore MPEG-4 part 2",
};
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c
index d76341c0e7..d131195f2a 100644
--- a/libavcodec/mjpegenc.c
+++ b/libavcodec/mjpegenc.c
@@ -454,6 +454,6 @@ AVCodec mjpeg_encoder = {
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, PIX_FMT_NONE},
.long_name= "MJPEG (Motion JPEG)",
};
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 282d14790a..86e1334a24 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -70,13 +70,13 @@ extern int XVMC_field_end(MpegEncContext *s);
extern void XVMC_pack_pblocks(MpegEncContext *s,int cbp);
extern void XVMC_init_block(MpegEncContext *s);//set s->block
-static const enum PixelFormat pixfmt_yuv_420[]= {PIX_FMT_YUV420P,-1};
-static const enum PixelFormat pixfmt_yuv_422[]= {PIX_FMT_YUV422P,-1};
-static const enum PixelFormat pixfmt_yuv_444[]= {PIX_FMT_YUV444P,-1};
+static const enum PixelFormat pixfmt_yuv_420[]= {PIX_FMT_YUV420P,PIX_FMT_NONE};
+static const enum PixelFormat pixfmt_yuv_422[]= {PIX_FMT_YUV422P,PIX_FMT_NONE};
+static const enum PixelFormat pixfmt_yuv_444[]= {PIX_FMT_YUV444P,PIX_FMT_NONE};
static const enum PixelFormat pixfmt_xvmc_mpg2_420[] = {
PIX_FMT_XVMC_MPEG2_IDCT,
PIX_FMT_XVMC_MPEG2_MC,
- -1};
+ PIX_FMT_NONE};
uint8_t ff_mpeg12_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3];
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index 4aaa0972db..689a9ea74a 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -936,7 +936,7 @@ AVCodec mpeg1video_encoder = {
MPV_encode_picture,
MPV_encode_end,
.supported_framerates= ff_frame_rate_tab+1,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.capabilities= CODEC_CAP_DELAY,
.long_name= "MPEG-1 video",
};
@@ -950,7 +950,7 @@ AVCodec mpeg2video_encoder = {
MPV_encode_picture,
MPV_encode_end,
.supported_framerates= ff_frame_rate_tab+1,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_NONE},
.capabilities= CODEC_CAP_DELAY,
.long_name= "MPEG-2 video",
};
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 8b6aa4330b..12f87c44b7 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -3743,7 +3743,7 @@ AVCodec h263_encoder = {
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "H.263",
};
@@ -3755,7 +3755,7 @@ AVCodec h263p_encoder = {
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "H.263+ / H.263 version 2",
};
@@ -3767,7 +3767,7 @@ AVCodec flv_encoder = {
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "Flash Video",
};
@@ -3779,7 +3779,7 @@ AVCodec rv10_encoder = {
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "RealVideo 1.0",
};
@@ -3791,7 +3791,7 @@ AVCodec rv20_encoder = {
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "RealVideo 2.0",
};
@@ -3803,7 +3803,7 @@ AVCodec mpeg4_encoder = {
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.capabilities= CODEC_CAP_DELAY,
.long_name= "MPEG-4 part 2",
};
@@ -3816,7 +3816,7 @@ AVCodec msmpeg4v1_encoder = {
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "MPEG-4 part 2 Microsoft variant version 1",
};
@@ -3828,7 +3828,7 @@ AVCodec msmpeg4v2_encoder = {
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "MPEG-4 part 2 Microsoft variant version 2",
};
@@ -3840,7 +3840,7 @@ AVCodec msmpeg4v3_encoder = {
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "MPEG-4 part 2 Microsoft variant version 3",
};
@@ -3852,6 +3852,6 @@ AVCodec wmv1_encoder = {
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "Windows Media Video 7",
};
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
index 1ac9f311b8..74376af492 100644
--- a/libavcodec/pngenc.c
+++ b/libavcodec/pngenc.c
@@ -444,6 +444,6 @@ AVCodec png_encoder = {
png_enc_init,
encode_frame,
NULL, //encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_PAL8, PIX_FMT_GRAY8, PIX_FMT_MONOBLACK, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_PAL8, PIX_FMT_GRAY8, PIX_FMT_MONOBLACK, PIX_FMT_NONE},
.long_name= "PNG image",
};
diff --git a/libavcodec/pnmenc.c b/libavcodec/pnmenc.c
index b745779dd4..7ea286a878 100644
--- a/libavcodec/pnmenc.c
+++ b/libavcodec/pnmenc.c
@@ -364,7 +364,7 @@ AVCodec pgm_encoder = {
pnm_encode_frame,
NULL, //encode_end,
pnm_decode_frame,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_GRAY8, PIX_FMT_GRAY16BE, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_GRAY8, PIX_FMT_GRAY16BE, PIX_FMT_NONE},
.long_name= "PGM (Portable GrayMap) image",
};
#endif // CONFIG_PGM_ENCODER
@@ -379,7 +379,7 @@ AVCodec pgmyuv_encoder = {
pnm_encode_frame,
NULL, //encode_end,
pnm_decode_frame,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "PGMYUV (Portable GrayMap YUV) image",
};
#endif // CONFIG_PGMYUV_ENCODER
@@ -394,7 +394,7 @@ AVCodec ppm_encoder = {
pnm_encode_frame,
NULL, //encode_end,
pnm_decode_frame,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_NONE},
.long_name= "PPM (Portable PixelMap) image",
};
#endif // CONFIG_PPM_ENCODER
@@ -409,7 +409,7 @@ AVCodec pbm_encoder = {
pnm_encode_frame,
NULL, //encode_end,
pnm_decode_frame,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_MONOWHITE, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_MONOWHITE, PIX_FMT_NONE},
.long_name= "PBM (Portable BitMap) image",
};
#endif // CONFIG_PBM_ENCODER
@@ -424,7 +424,7 @@ AVCodec pam_encoder = {
pam_encode_frame,
NULL, //encode_end,
pnm_decode_frame,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_GRAY8, PIX_FMT_MONOWHITE, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_GRAY8, PIX_FMT_MONOWHITE, PIX_FMT_NONE},
.long_name= "PAM (Portable AnyMap) image",
};
#endif // CONFIG_PAM_ENCODER
diff --git a/libavcodec/qtrleenc.c b/libavcodec/qtrleenc.c
index 212ad7caac..c112332820 100644
--- a/libavcodec/qtrleenc.c
+++ b/libavcodec/qtrleenc.c
@@ -322,6 +322,6 @@ AVCodec qtrle_encoder = {
qtrle_encode_init,
qtrle_encode_frame,
qtrle_encode_end,
- .pix_fmts = (enum PixelFormat[]){PIX_FMT_RGB24, -1},
+ .pix_fmts = (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_NONE},
.long_name = "QuickTime Animation (RLE) video",
};
diff --git a/libavcodec/roqvideoenc.c b/libavcodec/roqvideoenc.c
index dfba2510fa..667b821e11 100644
--- a/libavcodec/roqvideoenc.c
+++ b/libavcodec/roqvideoenc.c
@@ -1065,6 +1065,6 @@ AVCodec roq_encoder =
roq_encode_frame,
roq_encode_end,
.supported_framerates = (AVRational[]){{30,1}, {0,0}},
- .pix_fmts = (enum PixelFormat[]){PIX_FMT_YUV444P, -1},
+ .pix_fmts = (enum PixelFormat[]){PIX_FMT_YUV444P, PIX_FMT_NONE},
.long_name = "Id RoQ video",
};
diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c
index dffc899f03..c85c9a4e6e 100644
--- a/libavcodec/sgienc.c
+++ b/libavcodec/sgienc.c
@@ -151,7 +151,7 @@ AVCodec sgi_encoder = {
encode_init,
encode_frame,
NULL,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGBA, PIX_FMT_PAL8, PIX_FMT_GRAY8, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGBA, PIX_FMT_PAL8, PIX_FMT_GRAY8, PIX_FMT_NONE},
.long_name= "SGI image",
};
diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index 666be9e640..fd9607495e 100644
--- a/libavcodec/svq1dec.c
+++ b/libavcodec/svq1dec.c
@@ -825,6 +825,6 @@ AVCodec svq1_decoder = {
svq1_decode_frame,
CODEC_CAP_DR1,
.flush= ff_mpeg_flush,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV410P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV410P, PIX_FMT_NONE},
.long_name= "Sorenson Vector Quantizer 1",
};
diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c
index fffa85ebf9..a9713ea320 100644
--- a/libavcodec/svq1enc.c
+++ b/libavcodec/svq1enc.c
@@ -584,6 +584,6 @@ AVCodec svq1_encoder = {
svq1_encode_init,
svq1_encode_frame,
svq1_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV410P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV410P, PIX_FMT_NONE},
.long_name= "Sorenson Vector Quantizer 1",
};
diff --git a/libavcodec/targaenc.c b/libavcodec/targaenc.c
index 8a23cc1f36..90dc8cba61 100644
--- a/libavcodec/targaenc.c
+++ b/libavcodec/targaenc.c
@@ -145,6 +145,6 @@ AVCodec targa_encoder = {
.priv_data_size = 0,
.init = targa_encode_init,
.encode = targa_encode_frame,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB555, PIX_FMT_GRAY8, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB555, PIX_FMT_GRAY8, PIX_FMT_NONE},
.long_name= "Truevision Targa image",
};
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index 2382ed8d27..c2b942f1d9 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -456,6 +456,6 @@ AVCodec tiff_encoder = {
PIX_FMT_YUV420P, PIX_FMT_YUV422P,
PIX_FMT_YUV444P, PIX_FMT_YUV410P,
PIX_FMT_YUV411P,
- -1},
+ PIX_FMT_NONE},
.long_name = "TIFF image",
};
diff --git a/libavcodec/wmv2enc.c b/libavcodec/wmv2enc.c
index 289721ba7f..c7b8899f61 100644
--- a/libavcodec/wmv2enc.c
+++ b/libavcodec/wmv2enc.c
@@ -236,6 +236,6 @@ AVCodec wmv2_encoder = {
wmv2_encode_init,
MPV_encode_picture,
MPV_encode_end,
- .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "Windows Media Video 8",
};
diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c
index 0bf1dff192..f51688eea8 100644
--- a/libavcodec/zmbvenc.c
+++ b/libavcodec/zmbvenc.c
@@ -329,6 +329,6 @@ AVCodec zmbv_encoder = {
encode_init,
encode_frame,
encode_end,
- .pix_fmts = (enum PixelFormat[]){PIX_FMT_PAL8, -1},
+ .pix_fmts = (enum PixelFormat[]){PIX_FMT_PAL8, PIX_FMT_NONE},
.long_name = "Zip Motion Blocks Video",
};
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 319983b8fa..95eea3cd92 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -223,7 +223,7 @@ static enum PixelFormat fmt_v4l2ff(uint32_t pix_fmt)
}
}
- return -1;
+ return PIX_FMT_NONE;
}
static int mmap_init(AVFormatContext *ctx)