changeset 6748:7fea187c80b0 libavcodec

Prevent targaenc.c from outputting trash byte.
author ramiro
date Sun, 04 May 2008 20:04:00 +0000
parents b9a57d71425d
children b1778cf7f3b1
files targaenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/targaenc.c	Sun May 04 09:58:22 2008 +0000
+++ b/targaenc.c	Sun May 04 20:04:00 2008 +0000
@@ -87,7 +87,7 @@
     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 */