[FFmpeg-cvslog] r13059 - trunk/libavcodec/targaenc.c
ramiro
subversion
Sun May 4 22:04:00 CEST 2008
Author: ramiro
Date: Sun May 4 22:04:00 2008
New Revision: 13059
Log:
Prevent targaenc.c from outputting trash byte.
Modified:
trunk/libavcodec/targaenc.c
Modified: trunk/libavcodec/targaenc.c
==============================================================================
--- trunk/libavcodec/targaenc.c (original)
+++ trunk/libavcodec/targaenc.c Sun May 4 22:04:00 2008
@@ -87,7 +87,7 @@ static int targa_encode_frame(AVCodecCon
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 */
More information about the ffmpeg-cvslog
mailing list