j2kenc: enable 4:2:0 YUV it works as "well" as the other subsampled yuv formats
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 27 Sep 2011 17:25:43 +0000 (19:25 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 27 Sep 2011 17:30:19 +0000 (19:30 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/j2kenc.c

index ba31f2b..1c2e89a 100644 (file)
@@ -1041,6 +1041,7 @@ AVCodec ff_jpeg2000_encoder = {
     .capabilities= CODEC_CAP_EXPERIMENTAL,
     .pix_fmts =
         (enum PixelFormat[]) {PIX_FMT_GRAY8, PIX_FMT_RGB24,
+                              PIX_FMT_YUV420P,
                               PIX_FMT_YUV422P, PIX_FMT_YUV444P,
                               PIX_FMT_YUV410P, PIX_FMT_YUV411P,
                               -1}