diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-27 23:39:50 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-03-04 01:14:52 -0500 |
commit | 29e2c8531096a5fb67079551564b4ab3f9acd8a6 (patch) | |
tree | fdcf9220e10a6a368269abb8ca1f485b6db71083 | |
parent | 6c7a01621ce0633de7a2a2ebbc0a2ccabdda3248 (diff) | |
download | ffmpeg-29e2c8531096a5fb67079551564b4ab3f9acd8a6.tar.gz |
nellymoserenc: zero any leftover packet bytes
fixes writing of uninitialized packet data
-rw-r--r-- | libavcodec/nellymoserenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c index 5848191aeb..c0b174675b 100644 --- a/libavcodec/nellymoserenc.c +++ b/libavcodec/nellymoserenc.c @@ -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) |