summaryrefslogtreecommitdiffstats
path: root/libavcodec/pnm.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-01-17 00:38:54 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-01-17 00:42:17 +0100
commit00430075bd0f06e4c6d9612f3a522255155b035b (patch)
tree53980846b244c173f5ff49b03a5dccf7047f2ee3 /libavcodec/pnm.c
parent328e79329af80977451b501a2880f016ba0801e2 (diff)
downloadffmpeg-streaming-00430075bd0f06e4c6d9612f3a522255155b035b.zip
ffmpeg-streaming-00430075bd0f06e4c6d9612f3a522255155b035b.tar.gz
Support 64bit pam decoding.
Diffstat (limited to 'libavcodec/pnm.c')
-rw-r--r--libavcodec/pnm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c
index 1defbc2..212ec06 100644
--- a/libavcodec/pnm.c
+++ b/libavcodec/pnm.c
@@ -131,8 +131,7 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s)
if (maxval < 256) {
avctx->pix_fmt = PIX_FMT_RGB32;
} else {
- av_log(avctx, AV_LOG_ERROR, "Unsupported bit depth\n");
- return -1;
+ avctx->pix_fmt = PIX_FMT_RGBA64BE;
}
} else {
return -1;
OpenPOWER on IntegriCloud