summaryrefslogtreecommitdiff
path: root/libavcodec/sunrast.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-03-09 09:17:07 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-03-09 09:17:07 +0100
commit19e72e0a8d129bedb03188edc16bc26de9f04b12 (patch)
treec91c7574461979c56009a1e12a2a1bf1f70f7198 /libavcodec/sunrast.c
parentaf55a9d80a6f50a806a40ca1641de1372d64ee99 (diff)
downloadffmpeg-19e72e0a8d129bedb03188edc16bc26de9f04b12.tar.gz
Fix 32bit sunrast decoding.
This patch visually breaks the sample from ticket #895, but decodes it identically as Gimp, ImageMagick and xview.
Diffstat (limited to 'libavcodec/sunrast.c')
-rw-r--r--libavcodec/sunrast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index 7137621ece..014c96d183 100644
--- a/libavcodec/sunrast.c
+++ b/libavcodec/sunrast.c
@@ -105,7 +105,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_RGB24 : PIX_FMT_BGR24;
break;
case 32:
- avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_RGB0 : PIX_FMT_BGR0;
+ avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_0RGB : PIX_FMT_0BGR;
break;
default:
av_log(avctx, AV_LOG_ERROR, "invalid depth\n");