summaryrefslogtreecommitdiff
path: root/libavcodec/targaenc.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2008-05-04 20:04:00 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2008-05-04 20:04:00 +0000
commitd010a2d5befcde4782c4498134bb380e9fb24af6 (patch)
tree10c7664094f8fb8a92e0c5b186e02bc1d1678fce /libavcodec/targaenc.c
parent4405c986f9459eb7027d185aef0e59ee38205cdb (diff)
downloadffmpeg-d010a2d5befcde4782c4498134bb380e9fb24af6.tar.gz
Prevent targaenc.c from outputting trash byte.
Originally committed as revision 13059 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/targaenc.c')
-rw-r--r--libavcodec/targaenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/targaenc.c b/libavcodec/targaenc.c
index 120c62ba70..8a23cc1f36 100644
--- a/libavcodec/targaenc.c
+++ b/libavcodec/targaenc.c
@@ -87,7 +87,7 @@ static int targa_encode_frame(AVCodecContext *avctx,
p->key_frame= 1;
/* zero out the header and only set applicable fields */
- memset(outbuf, 0, 11);
+ memset(outbuf, 0, 12);
AV_WL16(outbuf+12, avctx->width);
AV_WL16(outbuf+14, avctx->height);
outbuf[17] = 0x20; /* origin is top-left. no alpha */