nellymoserenc: zero any leftover packet bytes

fixes writing of uninitialized packet data
This commit is contained in:
Justin Ruggles 2012-02-27 23:39:50 -05:00
parent 6c7a01621c
commit 29e2c85310

View File

@ -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)