diff options
author | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-12-29 12:00:28 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-12-29 12:00:28 +0000 |
commit | a80459fdf3259cbdd7f81df9026c7a2cb9ccfd28 (patch) | |
tree | f3020aebed6172c728c55fda72cb69563ca51d49 | |
parent | 484d1464162a94bcd63f65adb008c44bd6b94f7e (diff) | |
download | ffmpeg-a80459fdf3259cbdd7f81df9026c7a2cb9ccfd28.tar.gz |
Fix colours for QT JPEG2000, fixes issue 1540.
Originally committed as revision 20963 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/libopenjpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libopenjpeg.c b/libavcodec/libopenjpeg.c index f1e047437c..387ea8b5d9 100644 --- a/libavcodec/libopenjpeg.c +++ b/libavcodec/libopenjpeg.c @@ -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; |