Browse Source

Fix colours for QT JPEG2000, fixes issue 1540.

Originally committed as revision 20963 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Carl Eugen Hoyos 16 years ago
parent
commit
a80459fdf3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libopenjpeg.c

+ 1
- 1
libavcodec/libopenjpeg.c View File

@@ -131,7 +131,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
}
break;
case 4: has_alpha = 1;
avctx->pix_fmt = PIX_FMT_RGB32;
avctx->pix_fmt = PIX_FMT_RGBA;
break;
default: av_log(avctx, AV_LOG_ERROR, "%d components unsupported.\n", image->numcomps);
goto done;


Loading…
Cancel
Save