summaryrefslogtreecommitdiff
path: root/libavcodec/a64multienc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-02-23 10:04:57 +0100
committerAnton Khirnov <anton@khirnov.net>2012-02-23 19:56:45 +0100
commitcfc6ab3199e7ac4197744e17e82144d857886096 (patch)
tree6c15824203617e4a872d2caa3b9ee4261e8683d2 /libavcodec/a64multienc.c
parent4da6d194e5b00404f4d545adcaa8e206592ae746 (diff)
downloadffmpeg-cfc6ab3199e7ac4197744e17e82144d857886096.tar.gz
a64multienc: don't write into output buffer when there's no output.
Diffstat (limited to 'libavcodec/a64multienc.c')
-rw-r--r--libavcodec/a64multienc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c
index 532f2a2824..d50586e84b 100644
--- a/libavcodec/a64multienc.c
+++ b/libavcodec/a64multienc.c
@@ -317,8 +317,6 @@ static int a64multi_encode_frame(AVCodecContext *avctx, unsigned char *buf,
charset += charset_size;
req_size += charset_size;
}
- /* no charset so clean buf */
- else memset(buf, 0, charset_size);
/* write x frames to buf */
for (frame = 0; frame < c->mc_lifetime; frame++) {