[FFmpeg-cvslog] Cosmetics: Replace -1 with PIX_FMT_NONE.

Paul B Mahol git at videolan.org
Sun Jan 1 23:24:57 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jan  1 23:23:58 2012 +0100| [c0f7c574e976915d5b33bf5b80fded9dfdc073b8] | committer: Carl Eugen Hoyos

Cosmetics: Replace -1 with PIX_FMT_NONE.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c0f7c574e976915d5b33bf5b80fded9dfdc073b8
---

 libavcodec/j2kdec.c   |    2 +-
 libavcodec/mjpegenc.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
index d605b13..c4cf017 100644
--- a/libavcodec/j2kdec.c
+++ b/libavcodec/j2kdec.c
@@ -1078,5 +1078,5 @@ AVCodec ff_jpeg2000_decoder = {
     .capabilities = CODEC_CAP_EXPERIMENTAL,
     .long_name = NULL_IF_CONFIG_SMALL("JPEG 2000"),
     .pix_fmts =
-        (enum PixelFormat[]) {PIX_FMT_GRAY8, PIX_FMT_RGB24, -1}
+        (enum PixelFormat[]) {PIX_FMT_GRAY8, PIX_FMT_RGB24, PIX_FMT_NONE}
 };
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c
index 0fd5e5a..454a804 100644
--- a/libavcodec/mjpegenc.c
+++ b/libavcodec/mjpegenc.c
@@ -490,6 +490,6 @@ AVCodec ff_amv_encoder = {
     .init           = MPV_encode_init,
     .encode         = amv_encode_picture,
     .close          = 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      = NULL_IF_CONFIG_SMALL("AMV Video"),
 };



More information about the ffmpeg-cvslog mailing list