summaryrefslogtreecommitdiff
path: root/libavcodec/pamenc.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-12-28 05:54:59 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-12-28 05:54:59 +0100
commitc1bc1967f30e2e9ac0ffecbc4aadad873c1b586c (patch)
treeed3cbdba91455f7bf401e52a049dc448042d3681 /libavcodec/pamenc.c
parent0e5fbbd7768a6eb42809c08a5dd46093caf407d3 (diff)
Fix a typo that broke writing (and reading) PAM files.
Reported and reviewed by Derek Buitenhuis.
Diffstat (limited to 'libavcodec/pamenc.c')
-rw-r--r--libavcodec/pamenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pamenc.c b/libavcodec/pamenc.c
index d9d849e8ad..28fe7e13d7 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);