# HG changeset patch # User reimar # Date 1351808847 0 # Node ID 3ca6a7d60396bb9b327415b5fe5d9b6bed0f20f0 # Parent db0feadeac0a8a445fb2779e7e1bf240de9f9676 Fix typo causing memset to not properly initialize the struct. diff -r db0feadeac0a -r 3ca6a7d60396 xvid_vbr.c --- 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;