diff options
author | Carl Eugen Hoyos | 2012-01-17 00:37:20 +0100 |
---|---|---|
committer | Carl Eugen Hoyos | 2012-01-17 00:42:17 +0100 |
commit | 328e79329af80977451b501a2880f016ba0801e2 (patch) | |
tree | 1993aa346e2eff43c479759e3d4edabfba585c6c /libavcodec/pnmdec.c | |
parent | dc2f652ae4ca4e4093b6a90d82b09e0545b84c7f (diff) |
Support gray8a pam decoding.
Diffstat (limited to 'libavcodec/pnmdec.c')
-rw-r--r-- | libavcodec/pnmdec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c index dc64f9b70e..ee15126889 100644 --- a/libavcodec/pnmdec.c +++ b/libavcodec/pnmdec.c @@ -75,6 +75,11 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data, if (s->maxval < 255) upgrade = 1; goto do_read; + case PIX_FMT_GRAY8A: + n = avctx->width * 2; + components=2; + sample_len=8; + goto do_read; case PIX_FMT_GRAY16BE: case PIX_FMT_GRAY16LE: n = avctx->width * 2; |