changeset 35241:3ca6a7d60396

Fix typo causing memset to not properly initialize the struct.
author reimar
date Thu, 01 Nov 2012 22:27:27 +0000
parents db0feadeac0a
children 777fc6f5cd6f
files xvid_vbr.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/xvid_vbr.c	Thu Nov 01 22:23:07 2012 +0000
+++ b/xvid_vbr.c	Thu Nov 01 22:27:27 2012 +0000
@@ -152,7 +152,7 @@
 {
 
 	/* Set all the structure to zero */
-	memset(state, 0, sizeof(state));
+	memset(state, 0, sizeof(*state));
 
 	/* Default mode is CBR */
 	state->mode = VBR_MODE_1PASS;