[FFmpeg-devel] [PATCH]Do not use gray8 as default colourspace for libopenjpeg encoding

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Nov 29 11:32:23 CET 2011


Hi!

Other suggestions welcome!

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/libopenjpegenc.c b/libavcodec/libopenjpegenc.c
index 398339d..ff0bb0e 100644
--- a/libavcodec/libopenjpegenc.c
+++ b/libavcodec/libopenjpegenc.c
@@ -307,6 +307,6 @@ AVCodec ff_libopenjpeg_encoder = {
     .close = libopenjpeg_encode_close,
     .decode = NULL,
     .capabilities = 0,
-    .pix_fmts = (const enum PixelFormat[]){PIX_FMT_GRAY8,PIX_FMT_RGB24,PIX_FMT_RGBA,PIX_FMT_YUV420P,PIX_FMT_YUV422P,PIX_FMT_YUV440P,PIX_FMT_YUV444P},
+    .pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24,PIX_FMT_GRAY8,PIX_FMT_RGBA,PIX_FMT_YUV420P,PIX_FMT_YUV422P,PIX_FMT_YUV440P,PIX_FMT_YUV444P},
     .long_name = NULL_IF_CONFIG_SMALL("OpenJPEG based JPEG 2000 encoder"),
 } ;


More information about the ffmpeg-devel mailing list