a64multienc: don't write into output buffer when there's no output.

This commit is contained in:
Anton Khirnov 2012-02-23 10:04:57 +01:00
parent 4da6d194e5
commit cfc6ab3199
1 changed files with 0 additions and 2 deletions

View File

@ -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++) {