lavc/j2kenc: Enable yuv42x and yuv41x encoding.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 5 Jul 2015 21:49:17 +0000 (23:49 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 5 Jul 2015 22:06:54 +0000 (00:06 +0200)
Fixes ticket #535.
Fixes ticket #4524.

libavcodec/j2kenc.c

index f28cd56..dbe0783 100644 (file)
@@ -1163,9 +1163,8 @@ AVCodec ff_jpeg2000_encoder = {
     .capabilities   = CODEC_CAP_EXPERIMENTAL,
     .pix_fmts       = (const enum AVPixelFormat[]) {
         AV_PIX_FMT_RGB24, AV_PIX_FMT_YUV444P, AV_PIX_FMT_GRAY8,
-/*      AV_PIX_FMT_YUV420P,
-        AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV444P,
-        AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P,*/
+        AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P,
+        AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P,
         AV_PIX_FMT_NONE
     },
     .priv_class     = &j2k_class,