[FFmpeg-devel] [PATCH 2/2] j2kdec: vertically align AVCodec members

Paul B Mahol onemda at gmail.com
Tue Mar 27 01:32:30 CEST 2012


While here remove useless .pix_fmts.

Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavcodec/j2kdec.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
index 47d0915..8d0b643 100644
--- a/libavcodec/j2kdec.c
+++ b/libavcodec/j2kdec.c
@@ -1096,8 +1096,6 @@ AVCodec ff_jpeg2000_decoder = {
     .init           = j2kdec_init,
     .close          = decode_end,
     .decode         = decode_frame,
-    .capabilities = CODEC_CAP_EXPERIMENTAL,
-    .long_name = NULL_IF_CONFIG_SMALL("JPEG 2000"),
-    .pix_fmts =
-        (const enum PixelFormat[]) {PIX_FMT_GRAY8, PIX_FMT_RGB24, PIX_FMT_NONE}
+    .capabilities   = CODEC_CAP_EXPERIMENTAL,
+    .long_name      = NULL_IF_CONFIG_SMALL("JPEG 2000"),
 };
-- 
1.7.7



More information about the ffmpeg-devel mailing list