mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
nellymoserenc: zero any leftover packet bytes
fixes writing of uninitialized packet data
This commit is contained in:
parent
6c7a01621c
commit
29e2c85310
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue