diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-12-28 05:54:59 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-01-22 16:38:20 +0100 |
commit | 66b9d7065a5c01bcf6b5d5325fd9b9d4132e7e6f (patch) | |
tree | 6e698f87b153420d9ac5ba5404965c9de6f63e61 /libavcodec/pamenc.c | |
parent | 20ea14d0f812d337950cbbe9600d47b07352ba5d (diff) | |
download | ffmpeg-66b9d7065a5c01bcf6b5d5325fd9b9d4132e7e6f.tar.gz |
pam: Fix a typo that broke writing and reading PAM files.
Reported and reviewed by Derek Buitenhuis.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Diffstat (limited to 'libavcodec/pamenc.c')
-rw-r--r-- | libavcodec/pamenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pamenc.c b/libavcodec/pamenc.c index 10960d5e9c..e070ed4b3b 100644 --- a/libavcodec/pamenc.c +++ b/libavcodec/pamenc.c @@ -78,7 +78,7 @@ static int pam_encode_frame(AVCodecContext *avctx, unsigned char *outbuf, return -1; } snprintf(s->bytestream, s->bytestream_end - s->bytestream, - "P7\nWIDTH %d\nHEIGHT %d\nDEPTH %d\nMAXVAL %d\nTUPLETYPE %s\nENDHDR\n", + "P7\nWIDTH %d\nHEIGHT %d\nDEPTH %d\nMAXVAL %d\nTUPLTYPE %s\nENDHDR\n", w, h, depth, maxval, tuple_type); s->bytestream += strlen(s->bytestream); |