aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-29 04:54:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-03-29 04:55:58 +0200
commitaebce0b0fa40c7ce7ac31eabe1d16c72c6d4a035 (patch)
tree9e14bfbaf6c3d70ee6f0de253507f191ff78ac5d /libavcodec
parent9aeacc95461750c2161ef4fecbbb3323bcd340fb (diff)
parentb678dd9690662c8041df90f4d0873927abf31372 (diff)
downloadffmpeg-aebce0b0fa40c7ce7ac31eabe1d16c72c6d4a035.tar.gz
Merge git://github.com/mjbshaw/FFmpeg-OpenJPEG-J2K-Encoder
* git://github.com/mjbshaw/FFmpeg-OpenJPEG-J2K-Encoder: Fixes ticket 1127. I'm still looking into why bpp is getting set to 0. Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libopenjpegdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libopenjpegdec.c b/libavcodec/libopenjpegdec.c
index 2744713a8a..744b4e2ffa 100644
--- a/libavcodec/libopenjpegdec.c
+++ b/libavcodec/libopenjpegdec.c
@@ -266,7 +266,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
avcodec_set_dimensions(avctx, width, height);
switch (image->numcomps) {
- case 1: avctx->pix_fmt = (image->comps[0].bpp == 8) ? PIX_FMT_GRAY8 : PIX_FMT_GRAY16;
+ case 1: avctx->pix_fmt = (image->comps[0].prec == 8) ? PIX_FMT_GRAY8 : PIX_FMT_GRAY16;
break;
case 2: avctx->pix_fmt = PIX_FMT_GRAY8A;
break;