1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

libopenjpegdec: hack to fix GRAY16 decoding

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Paul B Mahol 2012-03-25 23:31:31 +00:00 committed by Michael Niedermayer
parent d6eef545c1
commit a65016205f

View File

@ -106,6 +106,10 @@ libopenjpeg_rgb:
static inline int libopenjpeg_ispacked(enum PixelFormat pix_fmt) {
int i, component_plane;
if (pix_fmt == PIX_FMT_GRAY16)
return 0;
component_plane = av_pix_fmt_descriptors[pix_fmt].comp[0].plane;
for(i = 1; i < av_pix_fmt_descriptors[pix_fmt].nb_components; i++) {
if (component_plane != av_pix_fmt_descriptors[pix_fmt].comp[i].plane)