Fix error when first value in pu depth list is omitted
@@ -327,8 +327,8 @@ static int parse_pu_depth_list( const char *array, int32_t *depths_min, int32_t
int retval = 1;
//Reset depths in case multiple pu depth parameters are given
- memset( depths_max, -1, size * sizeof( *depths_max ) );
- memset( depths_min, -1, size * sizeof( *depths_min ) );
+ if(size > 1) memset( depths_max + 1, -1, (size - 1) * sizeof( *depths_max ) );
+ if(size > 1) memset( depths_min + 1, -1, (size - 1) * sizeof( *depths_min ) );
token = strtok( list, "," );
while( ptr < len && list[ptr + 1] == ',' )
