[FFmpeg-cvslog] libopenjpegdec: hack to fix GRAY16 decoding
Paul B Mahol
git at videolan.org
Tue Mar 27 01:14:50 CEST 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Mar 25 23:31:31 2012 +0000| [a65016205f46d74aa631904ba72a8c70fe32258c] | committer: Michael Niedermayer
libopenjpegdec: hack to fix GRAY16 decoding
Signed-off-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a65016205f46d74aa631904ba72a8c70fe32258c
---
libavcodec/libopenjpegdec.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/libavcodec/libopenjpegdec.c b/libavcodec/libopenjpegdec.c
index d6a381c..2744713 100644
--- a/libavcodec/libopenjpegdec.c
+++ b/libavcodec/libopenjpegdec.c
@@ -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)
More information about the ffmpeg-cvslog
mailing list