Commit cfc6ab31 authored by Anton Khirnov's avatar Anton Khirnov

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

parent 4da6d194
......@@ -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++) {
......
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