Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-01-20 02:08:12 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-01-20 02:31:21 +0400
commitb614c147672aa3c1d38596c587a0921987cf94b7 (patch)
tree2567c75254ae830fb1d5af8eb94008e53e6e38a7 /libavcodec/pnm.c
parent34aadeaa2c2ae2e84abde3cca0a8b1392b8294ac (diff)
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;
}