Browse Source

Prevent targaenc.c from outputting trash byte.

Originally committed as revision 13059 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Ramiro Polla 17 years ago
parent
commit
d010a2d5be
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/targaenc.c

+ 1
- 1
libavcodec/targaenc.c View File

@@ -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 */


Loading…
Cancel
Save