aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pnm.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-01-19 23:08:12 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-01-19 23:31:21 +0100
commitb614c147672aa3c1d38596c587a0921987cf94b7 (patch)
tree2567c75254ae830fb1d5af8eb94008e53e6e38a7 /libavcodec/pnm.c
parent34aadeaa2c2ae2e84abde3cca0a8b1392b8294ac (diff)
downloadffmpeg-b614c147672aa3c1d38596c587a0921987cf94b7.tar.gz
Simplify 32bit pam decoding.
Reviewed-by: Paul B Mahol
Diffstat (limited to 'libavcodec/pnm.c')
-rw-r--r--libavcodec/pnm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c
index 212ec06c21..67df8c23d6 100644
--- a/libavcodec/pnm.c
+++ b/libavcodec/pnm.c
@@ -129,7 +129,7 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s)
}
} else if (depth == 4) {
if (maxval < 256) {
- avctx->pix_fmt = PIX_FMT_RGB32;
+ avctx->pix_fmt = PIX_FMT_RGBA;
} else {
avctx->pix_fmt = PIX_FMT_RGBA64BE;
}