1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

View File

@ -317,8 +317,6 @@ static int a64multi_encode_frame(AVCodecContext *avctx, unsigned char *buf,
charset += charset_size; charset += charset_size;
req_size += charset_size; req_size += charset_size;
} }
/* no charset so clean buf */
else memset(buf, 0, charset_size);
/* write x frames to buf */ /* write x frames to buf */
for (frame = 0; frame < c->mc_lifetime; frame++) { for (frame = 0; frame < c->mc_lifetime; frame++) {