[FFmpeg-cvslog] lavc: constify enums for .pix_fmts
Paul B Mahol
git at videolan.org
Thu Jan 12 16:35:03 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Jan 11 21:30:43 2012 +0000| [3e8a368b2bd0e75ea0beda21905ad9980a969d00] | committer: Michael Niedermayer
lavc: constify enums for .pix_fmts
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e8a368b2bd0e75ea0beda21905ad9980a969d00
---
libavcodec/j2kdec.c | 2 +-
libavcodec/j2kenc.c | 2 +-
libavcodec/mjpegenc.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
index 2cbd7cc..1f4cdeb 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, PIX_FMT_NONE}
+ (const enum PixelFormat[]) {PIX_FMT_GRAY8, PIX_FMT_RGB24, PIX_FMT_NONE}
};
diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c
index 37e31a9..7f8fdf1 100644
--- a/libavcodec/j2kenc.c
+++ b/libavcodec/j2kenc.c
@@ -1046,7 +1046,7 @@ AVCodec ff_jpeg2000_encoder = {
.capabilities= CODEC_CAP_EXPERIMENTAL,
.long_name = NULL_IF_CONFIG_SMALL("JPEG 2000"),
.pix_fmts =
- (enum PixelFormat[]) {PIX_FMT_RGB24, PIX_FMT_YUV444P, PIX_FMT_GRAY8,
+ (const enum PixelFormat[]) {PIX_FMT_RGB24, PIX_FMT_YUV444P, PIX_FMT_GRAY8,
/* PIX_FMT_YUV420P,
PIX_FMT_YUV422P, PIX_FMT_YUV444P,
PIX_FMT_YUV410P, PIX_FMT_YUV411P,*/
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c
index 454a804..4e77e0d 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, PIX_FMT_NONE},
+ .pix_fmts= (const 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