mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 03:28:27 +00:00
a64multienc: don't write into output buffer when there's no output.
This commit is contained in:
parent
4da6d194e5
commit
cfc6ab3199
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user