[FFmpeg-devel] [PATCH]Interpret 16bit 4:4:4 as rgb48

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jan 12 21:11:32 CET 2012


Hi!

jasper and OSX preview interpret jpeg2000 encoded with -pix_fmt yuv44p16 (and 
-pix_fmt rgb48) as rgb48.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/libopenjpegdec.c b/libavcodec/libopenjpegdec.c
index 07cca25..741ce5d 100644
--- a/libavcodec/libopenjpegdec.c
+++ b/libavcodec/libopenjpegdec.c
@@ -79,7 +79,7 @@ libopenjpeg_yuv444_rgb:
     case 8:  return PIX_FMT_RGB24;
     case 9:  return PIX_FMT_YUV444P9;
     case 10: return PIX_FMT_YUV444P10;
-    case 16: return PIX_FMT_YUV444P16;
+    case 16: return PIX_FMT_RGB48;
     }
 
 libopenjpeg_rgb:


More information about the ffmpeg-devel mailing list