nellymoserenc: zero any leftover packet bytes
fixes writing of uninitialized packet data
This commit is contained in:
parent
6c7a01621c
commit
29e2c85310
@ -363,6 +363,7 @@ static void encode_block(NellyMoserEncodeContext *s, unsigned char *output, int
|
||||
}
|
||||
|
||||
flush_put_bits(&pb);
|
||||
memset(put_bits_ptr(&pb), 0, output + output_size - put_bits_ptr(&pb));
|
||||
}
|
||||
|
||||
static int encode_frame(AVCodecContext *avctx, uint8_t *frame, int buf_size, void *data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user