projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4405c98
)
Prevent targaenc.c from outputting trash byte.
author
Ramiro Polla
<ramiro.polla@gmail.com>
Sun, 4 May 2008 20:04:00 +0000
(20:04 +0000)
committer
Ramiro Polla
<ramiro.polla@gmail.com>
Sun, 4 May 2008 20:04:00 +0000
(20:04 +0000)
Originally committed as revision 13059 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/targaenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/targaenc.c
b/libavcodec/targaenc.c
index 120c62ba703b9bc9ff649ddb04677373c4a513b5..8a23cc1f3649d601bafaea22d0b4fad312d0c702 100644
(file)
--- 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, 1
1
);
+ memset(outbuf, 0, 1
2
);
AV_WL16(outbuf+12, avctx->width);
AV_WL16(outbuf+14, avctx->height);
outbuf[17] = 0x20; /* origin is top-left. no alpha */