Commit 72c8992f authored by ramiro's avatar ramiro

Prevent targaenc.c from outputting trash byte.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13059 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4c84a2bb
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment